RowTest Extension for NUnit

RowTest Extension is an NUnit Addin that allows you to write RowTests for NUnit. RowTests can be used for simple Data-Driven Tests where the test data is provided by [Row] attributes.

Example

1
2
3
4
5
6
7
8
9
10
11
12
13
14
[TestFixture]
public class RowTestSample
{
	 [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)]
	 public void DivisionTest(double numerator, double denominator, double result)
	 {
	 	Assert.AreEqual(result, numerator / denominator, 0.00001);
	 }
}

Download

This extension requires NUnit 2.4 or above.

5 Responses to “RowTest Extension for NUnit”
  1. [...] You can download it from the RowTest Extension page. [...]

  2. [...] RowTest Extension for NUnit [...]

  3. [...] RowTest Extension for NUnit [...]

  4. [...] RowTest Extension for NUnit [...]

  5. [...] RowTest Extension for NUnit [...]

Leave a Reply