I\'m developing a tool that accesses SVN by running the command line SVN to get info and export. I\'d like to write some Cucumber features so I don\'t have to keep manually testing but I\'d like to m
This is a simplified version of a class I\'m writing a unit test for class SomeClass { void methodA() {
I\'m using Boost.Test for Unit testing and am currently running various mock servers in separate threads which get launched from within each test.In order to more accurately test my code the mock serv
We are using Moq as our mocking framework, the problem is that type that needs to be mock-able is done using an interface, the problem with that is anything in that interface will be public and theref
I have a class Foo that uses another class Bar to do some stuff. I\'m trying to do test driven development, and therefore am writing unit tests for Foo to make sure it calls the appropriate methods o
This question about unit tests sparked another thing that\'s been bothering me. I\'ve gone back and forth on three ways to do unit tests when hitting a database.
I\'ve been learning about DynamicObject in .NET 4.0 and was wondering if this type wou开发者_开发技巧ld be well suited to creating mock objects.
I need to create some unit tests that confirm that instance of a class responds appropriately to an event raised by another object. Passing in a mock of the \'watched\' object is easy enough, but as f
I get a Moq object to return different values on successive calls to a method. This is done by this extension method:
I\'m having difficulty testing controllers. Original my controller for testing looked something like this: