I want to do the following...
Until a method has been called a certain property must always return value x After a method has been called a certain property must always return value y
I am familiar with the WhenCalled method in RhinoMocks, which allows me to set that return value after the method has been called, but I cannot think of a way to set the return value before the call. So far I have the following code...
counter.Expect(n => n.IncreaseCounter())
.WhenCalled(i => counter.Expect(n => n.GetCounter)
.Return(Y).Repeat.Any());
Is this possible?