public void ReInsert_BetterThanWorst_Inserts()
        {
            var newInd = Helpers.CreateFitnessAssessedIndividualsFromArray(
                new double[][] { new[] { 1.0, 1.0 } },
                new[] { testPop.Worst().Fitness - 1 })
                         .First();
            var reinserter = new ReinsertionReplaceWorst();

            reinserter.ReInsert(new[] { newInd }, testPop);

            Assert.Contains(newInd, testPop);
        }
        public void ReInsert_EqualToWorst_DoesNotInsert()
        {
            var newInd = Helpers.CreateFitnessAssessedIndividualsFromArray(
                new double[][] { new[] { 1.0, 1.0 } },
                new[] { testPop.Worst().Fitness })
                         .First();
            var reinserter = new ReinsertionReplaceWorst();

            reinserter.ReInsert(new[] { newInd }, testPop);

            Assert.DoesNotContain(newInd, testPop);
        }