Mock-n-Roll: an overview of mocking frameworks available for .NET

November 22, 2009 20:52
A while ago your humble correspondent conducted a talk on mocking frameworks here in Prague.

Thanks to all who attended, it's been a great pleasure for me to present. As usually, if you have any questions you didn't ask there, feel free to drop a comment or two.

You can find the slides and the transcript here. Enjoy!

Mocking frameworks comparison

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.

Test failure diagnostics in mocking frameworks

August 2, 2009 17:34

There's another update in Mocking Frameworks Compare project, with the main focus on
test failure diagnostics.

Do you like internal messages you receive from your mocking framework? A usual answer is "sometimes yes, sometimes no".
Now you can compare what different frameworks return in similar situations (unexpected method call, or expected method call with incorrect parameters, and so on).

To kill a mockingbird

March 15, 2009 12:09
There is another update for Mocking Frameworks Compare that allows you to evaluate the performance of the frameworks. The same standard mocking operations being called in a sophisticated loop[1]. Nothing fancy.

For now, don't expect any comments on whether this comparison is relevant or not, whether it's important or not, and what could you do with it. Only numbers.

But they are nice.

Mocking Frameworks Compare

February 8, 2009 21:54
As another milestone of my ardour for mocking, I've started a small open source project. It provides a unified set of tests written against Moq, NMock2, Rhino Mocks and Typemock Isolator, so that you can easily compare the frameworks and make an informed decision when picking one up.

Unfortunately, I wasn't able to finish the test for TypeMock because the trial version of Isolator had expired. I asked for an open source license about a week ago but still no answer (although they claim to answer within 48 hours). We'll see, hopefully I'd find some time to contact them again next week. Isolator guys sent me the open source license this morning (February 15). Cool stuff - Isolator tests are in now!

In the meantime - go ahead. It's here.

Touching a hot iron: finishing off

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]