Archive for July, 2008

Data-Driven Unit Testing using Excel in Visual Studio

Data-Driven Unit Tests are very powerful but, it seems to me, rarely used feature in Visual Studio. Although they are not suitable in all situations they can be of a great help. Personally, I used them to drive testing of business rules. In one of the scenarios I had 9 parameters and they had about 900 possible combinations. I was able to cut the number of possible tests and I did so, but the point is that in some scenarios just typing in test data into source code is very laborious and error prone and can be easily avoided.
Continue reading ‘Data-Driven Unit Testing using Excel in Visual Studio’