Hi guys. Few weeks ago when I was writing unit tests using RhinoMocks and NUnit I got some special test case – I needed to assert that one method of class under test calls method of another instance while test setup requires execution of code that already calls this method.
Hello ;). Recently, when I wrote tests using RhinoMocks framework for mocks and stubs creation I had one case, in which I needed to stub property to return one value and then overwrite this setup to return another. In this post I will show you how to do this.