I\'m obviously confused - this is a task I\'ve accomplished with several other frameworks we\'re considering (NMock, Moq, FakeItEasy).I 开发者_运维知识库have a function call I\'d like to stub.The func
In my project I have an IoC container that gets initialized the usual way with a ServiceModule. When I write unit tests, I want to be able to bind to either a StrictMock, DynamicMock, PartialMock or S
I\'ve discovered that Rhino Mocks\' AssertWasCalled fails when I use lambdas as parameters to the method being asserted.
I\'m trying to asssert that a method was called on a stub. The method I\'m trying to assert was called takes an IEnumerable<string>. I don\'t care about the exact contents, but I just want to te
This question would have been asked many times w.r.t to RhinoMocks, but I will try to present a little differently. I have a situation like this below -
I can\'t get this working at all. I\'ve got this code in my test: MockRepository repository = new MockRepository();
[Subject(typeof(OnceADayProcessor))] public class When_processing_process_twice { private static ICanBeProcessedOnceADay ProcessedOnceADay;
I have the following logic in a more than decade old code for which I have to write Unit Tests. It is a concrete class and the following logic lies in the ctor. Is there a good way to write Unit Tests
I\'m doing file conversion which is mutiple steps process. The output of STEAP1 is passed as the input to STEP2. The output of STEP2 is the final output which assigned back to Context.FinalOutput prop
I have one class and I want to implement a unit test in one of its public methods to test if a specific method is called.