rhino-mocks
Out parameters with RhinoMocks
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[详细]
2023-04-07 11:47 分类:问答Ninject and dynamic WithConstructor/WithMeta and RhinoMocks
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[详细]
2023-04-07 10:56 分类:问答Are lambdas constructors for delegate types?
I\'ve discovered that Rhino Mocks\' AssertWasCalled fails when I use lambdas as parameters to the method being asserted.[详细]
2023-04-07 07:13 分类:问答Rhino Mock List constraint
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[详细]
2023-04-06 15:10 分类:问答Mocking, virtual and more
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 -[详细]
2023-04-06 08:26 分类:问答How to mock IDbSet with Rhino Mocks
I can\'t get this working at all. I\'ve got this code in my test: MockRepository repository = new MockRepository();[详细]
2023-04-04 05:40 分类:问答How do I assert that a method is called only once?
[Subject(typeof(OnceADayProcessor))] public class When_processing_process_twice { private static ICanBeProcessedOnceADay ProcessedOnceADay;[详细]
2023-04-04 01:59 分类:问答C# - Unit Testing/Mocking - Legacy Code
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[详细]
2023-04-02 22:12 分类:问答How to use Rhino Mocks for Stream?
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[详细]
2023-04-02 17:06 分类:问答What is the simplest unit test to implement for asserting a particular method is called?
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.[详细]
2023-04-02 14:58 分类:问答