Submitted by alastairs on 22 November 2009 - 1:13pm
Submitted by alastairs on 24 August 2008 - 4:34pm
To aid the testing of my personal finance program, I've been making heavy use of the NMock mocking framework for .NET. This is a cool utility that allows you replace actual code calls with mock code calls, factoring out a lot of complexity of setting up some tests. For example, I first started using it to mock the log4net logging framework rather than creating a new logger for each test/suite and passing that around.