January 18, 2009 22:41
Finishing off this lengthy soliloquy about different mocking frameworks, here's a small summary.
Comparison of different mocking frameworks. NMock2 vs Moq vs Rhino Mocks vs Typemock Isolator - it's all here.
[Update: there's a new comparison available]
December 21, 2008 20:17
So here is the method on Brain class we're going to test:
public void TouchIron(Iron iron)
We need to test the brain in isolation ensuring it yells if a hot iron is passed. In the test, the hand should emulate the hot iron case, and mouth should yell exactly once before the method finishes .