Search code examples
nunitnunit-2.5rowtest

What happended to nunit extensions/rowtest?


In NUnit 2.4.7, nunit.framework.extensions.dll was included which made it possible to do RowTests.

When downloading the newest version (2.5.8) I can't find it. What happened to it?


Solution

  • Instead of using RowTest, you can use TestCase. A previous testing using RowTest would look like:

    [RowTest]
    [Row("foo", false)]
    [Row("", true)]
    public void Some_test(string value, bool expected)
    {
      // test
    }
    

    And the same thing with TestCase looks like this:

    [TestCase("foo", false)]
    [TestCase("", true)]
    public void Some_test(string value, bool expected)
    {
      // test
    }