October 4, 2009 22:14
About 9 months ago I posted a comparison of different mocking frameworks. A lot has changed since then - armloads of bugfixes, gratifying influx of new features, and even a new mocking framework (!) - so time is ripe for a new comparison.
But before I move on, here's a very brief list of changes.
More...
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]
More...
December 21, 2008 20:17
So here is the method on Brain class we're going to test:
public void TouchIron(Iron iron)
{
try {
_hand.TouchIron(iron);
}
catch(BurnException) {
_mouth.Yell();
}
}
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 [1].
More...