In the previous post I’ve shown how to avoid hardcoding method names while setting up NMock stubs. Now it’s time for properties.
In the previous post I’ve shown how to avoid hardcoding method names while setting up NMock stubs. Now it’s time for properties.
When I’ve started using NMock in my new dotnetneural project I’ve faced with “magical” strings in stubs. Fortunately .NET 4 framework allows us to avoid them totally.