NUnit has the following feature where you can specify different values for a test with a TestCase attribute. Does Catch has something similar?
[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 );
}
I need to run the same unit test with different data values but each be different unit tests. I can copy/paste TEST_CASE/SECTION and change values but is there a clean way to do it like NUnit does.
I'm finding it really hard to even figure out what to search for. Catch uses TEST_CASE for a unit test which is completely different than what NUnit calls TestCase.