Wednesday, May 20, 2009

The Power (and complexity) Of .NET Unit Testing

I have recently begun a journey down the path of unit testing. I have been engineering software for many years now and up until this point my testing has been limited to integration testing my code using a front end. While this type of testing is effective in certain instances, it is not thorough and leaves a lot of unconvered bugs. I am part of a very strong engineering team at the moment and one of the software design techniques they swear by is unit testing. As I learn more and more about unit testing the more I am sold on this concept.

Where To Begin
I purchased "The Art of Unit Testing" by Roy Osherove to get my head wrapped around this new software design paradigm; this book is awesome. A great book that covers the basics, the concepts, the theory as well as the application in real world scenarios. I highly recommend you get this book:

Unit Testing Aids
Unit testing takes time to engineer, no doubt about it. However there are a number of great software packages that will make your unit testing life a lot easier. Whatever unit testing framework you end up choosing needs a good mocking framework to co-incide with it. With that in mind let me suggest TypeMock.

TypeMock Isolator - Aiding your ASP.NET unit testing efforts

Unit Testing ASP.NET? ASP.NET unit testing has never been this easy.

Typemock is launching a new product for ASP.NET developers – the ASP.NET Bundle - and for the launch will be giving out FREE licenses to bloggers and their readers.

The ASP.NET Bundle is the ultimate ASP.NET unit testing solution, and offers both Typemock Isolator, a unit test tool and Ivonna, the Isolator add-on for ASP.NET unit testing, for a bargain price.

Typemock Isolator is a leading .NET unit testing tool (C# and VB.NET) for many ‘hard to test’ technologies such as SharePoint, ASP.NET, MVC, WCF, WPF, Silverlight and more. Note that for unit testing Silverlight there is an open source Isolator add-on called SilverUnit.

The first 60 bloggers who will blog this text in their blog and tell us about it, will get a Free Isolator ASP.NET Bundle license (Typemock Isolator + Ivonna). If you post this in an ASP.NET dedicated blog, you'll get a license automatically (even if more than 60 submit) during the first week of this announcement.

Also 8 bloggers will get an additional 2 licenses (each) to give away to their readers / friends.

Go ahead, click the following link for more information on how to get your free license.


No comments: