Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我使用 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); }
我知道更笨重,但是怎么样?
[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); }
您不需要带有此代码的扩展 DLL。它将执行:
Should_Do_RowTest(5,6,11); Should_Do_RowTest(7,9,16);