nunit - nunit扩展/行测试发生了什么?

标签 nunit nunit-2.5 rowtest

在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/

相关文章:

c# - 使用 Task.Factory.StartNew().ContinueWith() 的单元测试代码

java - JUnit 等同于 NUnit Assert.Inconclusive?

.net - WatiN System.IO.FileNotFoundException Interop.SHDocVw

nunit - 如何使用 nunit 和 moq 进行异常处理?

c# - Nunit 插件没有出现在 nunit 的插件列表中

unit-testing - Visual Studio 测试中的 RowTest?

tfs - 将 NUnit 与 TFS 2010 一起使用? (特别是报告)

visual-studio - NUnit 中的跟踪仅在从 Visual Studio 进行调试时有效

c# - MSTest 是否有相当于 NUnit 的 TestCase 的工具?