Technorati Tags: ,

If you haven't tried TypeMock yet, then you are missing out on an amazing mocking framework.

Unlike other frameworks we have tried, TypeMock does not require you to change the code you are testing in order to create a "mocked" version of the dependency object you want to mock.

For example if testing a Business Object and you want to mock some Data Access object, then using a framework like NMock would require you to pass a mocked version of you Data Access object to the Business Object.  This would require some refactoring (extracting the interface of the Dal object, creating a constructor in the Business object, modifying internal code to use this interface) which sort of went against the grain.  Before TypeMock, I would have said that "this is the price you have to pay" for having the ability to use mocking.

TypeMock however, has the ability to mock the next instance of the object.  This means you can mock a dependency object without any refactoring or code changes.  Fantastic!

Full details here: http://www.typemock.com/

HTH

Ian