MSTest Equivalent for NUnit's Parameterized Tests?

c#, mstest, nunit, parameterized-unit-test, unit-testing

Solution

Would this help?

This week I was adding some unit tests to a project that is managed by TFS, so I decided to use the "core" unit testing framework available with VS2008, and unfortunately it doesn't support RowTests. But it has a similar feature called Data-Driven Unit Test. With this approach it's a bit more complicate to implement the "simple" RowTest scenario, but it allows also to implement more complicate ones.

Problem

NUnit supports a feature where you can specify a set of data inputs for a unit test to be run multiple times. ``` [RowTest] [Row(1001,1,2,3)] [Row(1,1001,2,3)] [Row(1,2,1001,3)] public void SumTests(int x, int y, int z, int expected) { ... } ``` What's the best way to accomplish this same type of thing using MSTest? I can't find a similar set of attributes.

Original source

Related problems