TDD - Test Driven Development - An Introduction
Wednesday, April 2nd, 2008TDD - Test Driven Development - An Introduction
TDD - Test Driven Development.
First of all what is TDD ? TDD is writing test cases while developing.
How is it important ?
You write the code, you write the test cases and see that all test cases pass. Now when you modify some code, you can just run these test cases and see that there are no breaking changes. Though time consuming, worth the time.
What tools do you have for .Net developers ??
Here is a list of free tools / tools which have a free version.
1) Moq - Moq is the only mocking library for .NET developed from scratch to take full advantage of .NET 3.5 (i.e. Linq expression trees) and C# 3.0 features (i.e. lambda expressions). It supports mocking interfaces as well as classes.
2) Rhino Mocks - Rhino Mocks’ purpose is to ease testing by allowing the developer to create mock implementations of custom objects and verify the interactions using unit testing.
3) MbUnit - Extensible unit testing framework that extends classic frameworks such as NUnit and csUnit by providing a variety of new specialized test fixtures. Developpers can even defined their own new fixtures.
4) NUnit - Unit-testing framework for all .NET languages.
5) White - Windows application automation. White supports rich client applications: Win32, Windows Forms and WPF.
6) Ranorex - Windows GUI test and automation library.
7) Watin - WatiN (Web Application Testing In .NET) allows you to automate Web application testing with Internet Explorer.
TestDriven.Net - Unit testing add-in for Visual Studio .NET.
9) xUnit.net - Unit testing framework.
This may not be a complete list, If I missed something please let me know through comments. Out of this list I would prefer NUnit and MbUnit.
In a future articles I will go over TDD in more detail.









