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); }}
没有任何数据可供显示