Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/13/20 14:20:24 (4 years ago)
Author:
dleko
Message:

#2825 Bugfix: The correct number of reference points are returned on ReferencePoint.GetNumberOfGeneratedReferencePoints.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2825-NSGA3/HeuristicLab.Algorithms.NSGA3-3.3.Test/UtilityTests.cs

    r17666 r17667  
    1313        [DataRow(3, 6)]
    1414        [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)
    1620        {
    1721            Assert.AreEqual(result, Utility.Factorial(input));
     
    2125        [DataRow(-1)]
    2226        [DataRow(31)]
    23         public void TestFactorial2(int input)
     27        public void TestFactorialConstraint(int input)
    2428        {
    2529            Assert.ThrowsException<InvalidOperationException>(() => { Utility.Factorial(input); });
    2630        }
     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        }
    2738    }
    2839}
Note: See TracChangeset for help on using the changeset viewer.