views:

614

answers:

3

I know that MSTest doens't support RowTest and similar tests.

What MSTests users do? How is it possible to live without RowTest support?

I've seen DataDriven test features but sounds like too much overhead, is there any 3rd patch or tool which allow me to do RowTest similar tests in MSTest ?

+3  A: 

Don't know if this helps, will try: http://codeclimber.net.nz/archive/2008/01/18/How-to-simulate-RowTest-with-MS-Test.aspx

gerleim
Basically, data driven tests with a text file, or an XML file in the example above. COOL, but not so cool as RowTests
Peter Gfader
MS have managed to take something simple and elegant and make it complex. Yes it's good to separate data and code, but this seems very clunky.
AndyM
+4  A: 
[TestMethod]
Test1Row1
{
    Test1(1,4,5);
}

[TestMethod]
Test1Row2
{
    Test1(1,7,8);
}

private Test1(int i, int j, int k)
{
   //all code and assertions in here
}
Tormod