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.
If you have some experience with WPF, this should not be surprise for you. Here I’m going to show how you can utilize this type of property in order to listen for changes in it. Let’s get started.