:::: MENU ::::

Thursday, February 28, 2008

We all know unit testing. These small tests are always based on some values, which are passed throug a routine you want to test and then validated with a known result. But what if you want to run that same test for a couple of times, wih different data and different expected values each time?

Data Driven Testing comes in handy. Visual Studio 2008 offers the possibility to use a database with parameter values and expected values as the data source for a unit test. That way, you can run a unit test, for example, for all customers in a database and make sure each customer passes the unit test.

Data Driven Testing in Visual Studio 2008 - Part 1 - Unit testing

Data Driven Testing in Visual Studio 2008 - Part 2 - Web testing