コード例 #1
0
        public void TestThatWhenCitiesAreInOrderFitnessScoreIsReturnedAsExpected()
        {
            var individual = new Individual {
                Genes = new int[] { 0, 1, 2, 3 }
            };
            const int expectedFitnessScore = 10;

            var result = fitnessFunction.GetFitnessScore(individual);

            Assert.AreEqual(expectedFitnessScore, result);
        }