IS Department

Mock Frameworks

Posted in Programming by Kevin Beck on October 26, 2006

I’ve been playing with a few of the mock frameworks that are available for .Net trying to find one that I can use to mock classes rather than interfaces.  I have found that NMock does not and RhinoMocks kinda does (only virtural members).  I’ve read that EasyMocks does allow you to mock classes but it appears that the project is dead (last update 2004 and no documentation) so I didn’t test it.   Finally, I found TypeMock which allows to to mock any concrete class and all members.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: