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.
[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); } }
This extension requires NUnit 2.4 or above.
The extension can be downloaded from the Google project page.
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
[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); } }Project pages
Download
This extension requires NUnit 2.4 or above.
The extension can be downloaded from the Google project page.