Charlie Poole released NUnit 2.4.7 today. This release eliminates some problems related to NUnit’s interaction with log4net and various bugs are also addressed. The release notes contain more detailed information.

RowTest Extension 1.2.2 is packaged in the NUnit extension assemblies. It’s the first time that an externally developed addin is included in a release of NUnit. You’ll have to change the namespace from NUnitExtension.RowTest to NUnit.Framework.Extensions if you want to port your unit tests from older versions of RowTest Extension.

You can download NUnit 2.4.7 from the NUnit site or from Sourceforge.

Technorati Tags , ,

4 Responses to “NUnit 2.4.7 includes RowTest Extension”
  1. Works great. The RowTest-attribute now works fine with the Category inclusion/exlcusion too. Porting the older tests was not much of a problem.

  2. Jake Collins says:

    RowTest is a great extension. Here’s a feature request for you.

    How about having the ability to specify an ExpectedException for one or more rows of your test data?

    I’m not sure if this would be the best syntax but something like:

    [RowTest]
    [Row( 1000, 10, 100.0000)]
    [Row(-1000, 10, -100.0000)]
    [Row( 1000, 7, 142.85715)]
    [Row( 1000, 0.00001, 100000000)]
    [Row(4195835, 3145729, 1.3338196)]
    [Row(1, 0, 0, ExpectedException = "System.DivideByZeroException" )]
    public void DivisionTest(double numerator, double denominator, double result)
    {
    Assert.AreEqual(result, numerator / denominator, 0.00001);
    }

  3. RowTest is cool, but in my case I need to build the row test case on the fly — I have a for loop getting data from database to generate test cases, and I need to dynamically build rowtest to attributes then apply to testFunction, is there a easy way to do it? any example code can share?

  4. [...] exercise was interesting to me, because it was a perfect case to try out the [RowTest] and [Row] attributes which now ship with NUnit. The classic NUnit version of the test would look something [...]

Leave a Reply