I have a preexisting Interface... public interface ISomeInterface { void SomeMethod(); } and I\'ve extended this intreface using a mixin...
I\'m really getting to TDD recently, and after reading Kent Beck\'s book on Test Driven Development, I\'ve still got many questions around test design in my mind.
I am using an external library which allows logging using StreamWriter - 开发者_JS百科now I want to add some handling based on the content of the logging. As I want to avoid to loop through the log fi
I google around unit testing LINQ to SQL and 开发者_运维问答people are using MockDatabase class where we have list and add data to those Lists.
We have two components: enterprise application X, and Web service Y We want to make our (automated) testing tool that will test application X (that interact with Y) only,
If I was to write a mocking library, how would this work (in other words, how do \"they work?)? One of the things which I wonder is that you are always setting expectations so really you need to comp
I\'m trying to use groovy\'s MockFor and proxyDelegateInstance to mock a java class with constructor parameters, but I can\'t seem to get it right. My Java class looks like:
I was trying to mock an interface and I got the next expection: System.TypeLoadException:System.TypeLoadException: Signature开发者_如何学JAVA of the body and declaration in a method implementation d
I am creating a repository that exposes IQueryable. What is the best way to mock this out for my unit testing?
If I have a method that calls itself under a certain condition, is it possible to write a test to verify the behavior? I\'d l开发者_JS百科ove to see an example, I don\'t care about the mock framework