Mocking Adventures with NMock2: Stubs Advanced
August 11th, 2009
NMock2 is a library for assisting test driven development of .NET code by providing a dynamic mock object creation framework.
In my last post on NMock2, I introduced the new Stub feature of NMock2 and its basic usage. In the second part, we are going to have a look at the advanced possibilities of the Stub mock style:
- Define Mock Style Of Nested Mocks
- Define Default Values

