NUnit has a function called "Values", as shown below:
[Test] public void MyTest( [Values(1,2,3)] int x, [Values("A","B")] string s) {
This means that the verification method will be executed 6 times:
MyTest(1, "A") MyTest(1, "B") MyTest(2, "A") MyTest(2, "B") MyTest(3, "A") MyTest(3, "B")
Now we are using MSTest, is there an equivalent for this so that I can run the same test with several parameters?
[TestMethod] public void Mytest() {
c # unit-testing nunit mstest vs-unit-testing-framework
The Light Jan 26 '12 at 16:50 2012-01-26 16:50
source share