nunit extensions/rowtest に何が起こったのでしょうか? 質問する

nunit extensions/rowtest に何が起こったのでしょうか? 質問する

NUnit 2.4.7 では、nunit.framework.extensions.dll が含まれ、RowTests を実行できるようになりました。

最新バージョン (2.5.8) をダウンロードしても見つかりません。何が起こったのでしょうか?

ベストアンサー1

を使用する代わりに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
}

おすすめ記事