How to clear previous setup using Rhino Mocks

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.

Continue reading

How to listen for Changes in Dependency Properties

Hi guys. Do you know that WPF bindings feature requires target properties to implement special type of WPF specific property – dependency property.

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.

Continue reading