当我使用NUnitExtension.RowTest.dll时,它会忽略我在Resharper / VS2008和Gallio Icarus中的测试。有人有配置吗?
[RowTest]
[Row(5, 6, 11)]
public void Should_Do_RowTest(int a, int b, int expected)
{
Assert.AreEqual(a+b, expected);
}
答案 0 :(得分:1)
Clunkier我知道,但是怎么样?
[Test, Sequential]
public void Should_Do_RowTest(
[Values(5,7)] int a,
[Values(6,9)] int b,
[Values(11,16)] int expected)
{
Assert.AreEqual(a+b, expected);
}
您不需要使用此代码的Extensions DLL。它将执行:
Should_Do_RowTest(5,6,11);
Should_Do_RowTest(7,9,16);