Archive

Archive for December 3rd, 2009

NMock2 Release with MockStyle.Stub?

December 3rd, 2009
Urs Enzler

We got the following geek question from Henrik:

Hi,

Thanks for sharing this preview of the MockStyle.Stub feature!
Its exactly was I was looking for when I googled this page,
so now I just can't wait for a release with this included ;-) 

I tried to find some information on futre release plans but could not find any.
Could anybody help me out? When could we3 expect a new NUnit
supporting MockStyle.Stub?

Cheers!

Henrik

The answer to this question is a bit complicated. Let me tell you why:

The current development team of NMock2 (Thomas, Peter and me) will not actively continue to develop NMock2. We’ll still provide basic support (bug fixes) but no new features. However, we have planned to make one last release (including the Stub feature) when we are sure that it works in our projects. This will be soon because we didn’t have a new defect in the last two months or so.

The reason why we have lost interest is that Moq has gained a lot of momentum and has a much broader community support. Furthermore, Moq provides some basic improvements that we cannot simply add to NMock2: besides the type safe, refactoring friendlier syntax, it allows very clean AAA (Arrange, Act, Assert) unit tests.

On the other side, there exists the NMock3 project on CodePlex that adds a type-safe syntax wrapper around NMock2. Check it out, when you already use NMock2 in your project.

So for short: the release including the Stub feature will be available soon, but it will also be the last release.

If you can’t wait until the official release then get the code from the subversion repository and start the build.release.cmd, et voila!

Happy mocking (whatever framework you use)

Urs

 

.NET, Ask a geek