i wonder if someone is able to help me with my problem. I have to stub a method which is able to perform conditional mocking. In short, i like the stub function to return different objects of the same class depending on when it is called.
e.g.
- First call return Obj1
- Second call return Obj3
- Third call return Obj7
...
Does anyone know how to do this with NMock?