- Timestamp:
- 07/13/20 14:20:24 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2825-NSGA3/HeuristicLab.Algorithms.NSGA3-3.3.Test/UtilityTests.cs
r17666 r17667 13 13 [DataRow(3, 6)] 14 14 [DataRow(4, 24)] 15 public void TestFactorial(int input, int result) 15 [DataRow(10, 3628800)] 16 [DataRow(12, 479001600)] 17 [DataRow(13, 6227020800)] 18 [DataRow(14, 87178291200)] 19 public void TestFactorial(int input, long result) 16 20 { 17 21 Assert.AreEqual(result, Utility.Factorial(input)); … … 21 25 [DataRow(-1)] 22 26 [DataRow(31)] 23 public void TestFactorial 2(int input)27 public void TestFactorialConstraint(int input) 24 28 { 25 29 Assert.ThrowsException<InvalidOperationException>(() => { Utility.Factorial(input); }); 26 30 } 31 32 [DataTestMethod] 33 [DataRow(14, 12, 91)] 34 public void TestNCR(int n, int r, int result) 35 { 36 Assert.AreEqual(result, Utility.NCR(n, r)); 37 } 27 38 } 28 39 }
Note: See TracChangeset
for help on using the changeset viewer.