In Nunit, you can reuse the test method for several cases.
[TestCase(12,3,4)] [TestCase(12,2,6)] [TestCase(12,4,3)] public void DivideTest(int n, int d, int q) { Assert.AreEqual( q, n / d ); }
How to do this in a Visual Studio test environment?
unit-testing visual-studio mstest vs-unit-testing-framework
Colonel panic
source share