Archive

Posts Tagged ‘Moq’

Moq suggestions: SetupSequentials

November 26th, 2009
Daniel Marbach

I must say I’m really a huge fan of Moq. Moq is steady growing and the developer community is quite impressive in inventing new features and extensions. I recently ran over a nice feature suggestion placed in a private branch from moq. The branch belongs to Brian J. Cardiff. I suggest you check also his blog out! The feature brain suggested is an extension method which allows to do sequential setups. The sequential setup allows to specify in a fluent way for example different return types on a mock for each call. Let’s have an example!

read more

 

.NET, Testing , , , ,

NMock2 is fast. Really fast!

March 16th, 2009
Urs Enzler

Andrew Kazyrevich published a post containing timing comparisons of Moq, Rhino Mocks, Isolator and NMock2.

And NMock2 – although still lacking some features – is very fast compared to the competitors. Woohoo!

I’m curious how the newly introduced features (mock classes, non-strict and recursive mocks) will change in this setup. I’ll check that out as soon as I find some time :-O

If you want to check the new features (alpha!) yourself then here is the svn URL: https://nmock2.svn.sourceforge.net/svnroot/nmock2/branches/nonstrictmocks

Happy mocking!

 

.NET, Announcement, Software, Testing , , , , , ,