在NUnit 2.4.7中,包含了nunit.framework.extensions.dll,这使得执行RowTests成为可能。
下载最新版本(2.5.8)时,我找不到它。这是怎么回事?
最佳答案
您可以使用RowTest
代替TestCase
。先前使用RowTest
进行的测试如下所示:
[RowTest]
[Row("foo", false)]
[Row("", true)]
public void Some_test(string value, bool expected)
{
// test
}
而
TestCase
的相同内容如下所示:[TestCase("foo", false)]
[TestCase("", true)]
public void Some_test(string value, bool expected)
{
// test
}
关于nunit - nunit扩展/行测试发生了什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4069841/