Eli Lopian's blog

Eli Lopian from TypeMock has started blogging. Simply going on TypeMock's excellent documentation, this will be one to watch.

If you haven't come across TypeMock before, it's a powerful and easy to use mocking framework. It uses the .NET profiler API in order to break the normal rules about what methods can be overridden and mocked.

The enterprise and professional versions of TypeMock come with a feature called Natural TypeMocks. This enables you to mock complex code in a very concise and readable way. If you have some complex legacy code you want to start unit testing, this feature alone will probably pay for itself within the first day! I feel like I have wind in my sails again since I started using it.

Natural TypeMocks is actually a layer on top of a flexible AOP and mocking framework. This AOP framework is included in the free community version of TypeMock. This is the real reason I encourage you to subscribe to Eli's blog. There are all kinds of tricks you could do with this framework. For example you could inject logging probes into 3rd party code, or enforce design by contract style pre and post conditions in your own code. I'm going to twist Eli's arm to write about some of this. ;)

If you already use TypeMock with TestDriven.NET, drop me a note and I'll give you a preview of the future TypeMock integration.

No Comments