Example #1
0
        public void GetEuclideanDistanceWithColorTest()
        {
            var statCounter = new StatCounter();
            var individual1 = new Individual(0, null);
            var individual2 = new Individual(0, null);

            individual2.Color.Value = individual2.Color + 0x100;

            Assert.AreEqual(1, statCounter.GetEuclideanDistance(individual1, individual2));
        }
Example #2
0
        public void GetEuclideanDistanceTest()
        {
            var statCounter = new StatCounter();
            var individual1 = new Individual(0, null);
            var individual2 = new Individual(0, null);

            individual2.Fertility.Value = individual2.Fertility + 1;

            Assert.AreEqual(1, statCounter.GetEuclideanDistance(individual1, individual2));
        }