In The Brain of Mike Hadlow - Rhino Mocks and Automocking
Mike Hadlow talks about Rhino Mocks, which is currently the most
popular Mock Object Framework for .NET. The talk focuses mostly over
the new features that come with the version 3.5. Mike starts with
quickly refreshing mocking basics and briefly overviewing the
configuration that he uses (NUnit + TestDriven.Net).
Following topics include the suitable places to use mocks, the difference between mocks and stubs and how to use auto-mocking.
The 3 new features of Rhino Mocks that are explained in detail are:
Arrange-Act-Assert, Argument Constraints, and WhenCalled. The relevant
syntax changes and how to make use of them are shown on sample code.
The sample code can be downloaded from here. The documentation for version 3.5 is here. Also you can check Mike’s blog here.
- Login or register to post comments
- 1336 reads
- Printer-friendly version
(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)










Comments
bet replied on Mon, 2009/06/08 - 5:31am