public void FitnessTrueTest()
 {
     double wantedBestResult = 19;
     ReachWantedResult target = new ReachWantedResult(wantedBestResult);
     bool actual = target.Fitness(_parents);
     Assert.IsTrue(actual);
     Assert.AreEqual(1, target.ActualCountOfReps);
 }
        public void FitnessFalseTest()
        {
            double wantedBestResult = 20;
            ReachWantedResult target1 = new ReachWantedResult(wantedBestResult);
            bool actual = target1.Fitness(_parents);
            Assert.IsFalse(actual);
            Assert.AreEqual(wantedBestResult, target1.BestResult);

            wantedBestResult = 21;
            ReachWantedResult target2 = new ReachWantedResult(wantedBestResult);
            actual = target2.Fitness(_parents);
            Assert.IsFalse(actual);
            Assert.AreNotEqual(wantedBestResult, target2.BestResult);
        }