Free cookie consent management tool by TermsFeed Policy Generator

source: branches/2825-NSGA3/HeuristicLab.Algorithms.NSGA3-3.3.Test/ReferencePointsTests.cs @ 17712

Last change on this file since 17712 was 17666, checked in by dleko, 4 years ago

#2825 Add Unit test project.

File size: 646 bytes
Line 
1using HeuristicLab.Algorithms.NSGA3;
2using Microsoft.VisualStudio.TestTools.UnitTesting;
3
4namespace HeuristicLab.Algorithms.NSGA3_3._3.Test
5{
6    [TestClass]
7    public class ReferencePointsTests
8    {
9        [DataTestMethod]
10        [DataRow(3, 91)]
11        [DataRow(5, 210)]
12        [DataRow(8, 156)]
13        [DataRow(10, 275)]
14        [DataRow(15, 135)]
15        public void TestGetNumberOfGeneratedReferencePoints(int dimensions, int expectedNumberOfReferencePoints)
16        {
17            Assert.AreEqual(expectedNumberOfReferencePoints, ReferencePoint.GetNumberOfGeneratedReferencePoints(dimensions));
18        }
19    }
20}
Note: See TracBrowser for help on using the repository browser.