The big mockery – NMock, Rhino Mocks, etc.
Nicolas Galler | February 26, 2007Yes it finally happened – I got tired of hand coding mock objects. Amazing how long it can take to prepare a mock when all I want to know is find out how many time it gets called and with what arguments.
I had heard of Rhino Mocks a while ago, of course (I read Ayende’s blog every day – he is a genius). I tried NMock2 as well. Both were fairly easy to get into. NMock2 is a bit more polished as far as the status report etc, but RhinoMocks being compiled rather than using strings makes it a lot easier to use, and the syntax is a bit more concise as well – and when you are cranking out test cases every little speed up helps!





