public void Factorial2Test() { TestCase1[] factorial2_data = new TestCase1[250]; // step 1: compute factorials using big integer to avoid trunctaion errors factorial2_data[0] = new TestCase1(-1, 1); factorial2_data[1] = new TestCase1(0, 1); for (int i = 2; i < factorial2_data.Length; i++) { factorial2_data[i] = new TestCase1(i - 1, BigInt.Factorial2(i - 1)); } // Run the test case TestCaseSet <int>[] testCases = { new TestCaseSet <int>(factorial2_data, "Factorial: Complete table", 10), }; NumericFunctionTest.RunSet(Math2.Factorial2, "Factorial2", testCases); }