State Street Gang
.NET, straight up

MoQs RoX

June 27, 2008 11:07 by Will

After the big refactor last iteration we're working on the unit tests.  One of the things I wanted to get done was to replace all our lousy stubs (none of which would compile now after the refactor) with a true mock framework.  When considering framework candidates, I had three requirements:  First, it had to be easy to learn and use.  Second, it had to be fully compatible with .NET 3.5 (i.e., using expression trees instead of strings to set expectations).  Third, it had to be free. 

The two candidates I chose are Rhino Mocks 3.5 and MoQ 2.5.  Because MoQ is fully documented (Rhino's 3.5 is a massive change, so all of the documentation out there for the previous versions is useless) I went with MoQ.  I still have Rhino as a reference just in case MoQ can't handle something.  I haven't found one yet.

More...

Tags:
Categories: MoQ | Testing
Actions: E-mail | Permalink | Comments (0) | Comment RSSRSS comment feed