How to RowTest with MSTest?

dr. evil picture dr. evil · Dec 7, 2008 · Viewed 13.3k times · Source

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

What do 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 party patch or tool which allow me to do RowTest similar tests in MSTest?

Answer

Tormod picture Tormod · Jul 30, 2009
[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
}