public void MaxEpochsConstraintShouldWorkWhenEpochsDoNotExeed()
        {
            var elapsedEpochs = rnd.Next(1000) + 1;
            var maxEpochs     = elapsedEpochs + 1 + rnd.Next(1000);
            var manager       = new ComputationTerminationManager(0, maxEpochs, 0);

            Assert.That(manager.Terminated(100, elapsedEpochs, 100), Is.False);
        }
        public void MaxEpochsWithoutFitnessImprovementConstraintShouldWorkWhenEpochsDoNotExeed()
        {
            var elapsedEpochsWFO = rnd.Next(1000) + 1;
            var maxEpochsWFO     = elapsedEpochsWFO + 1 + rnd.Next(1000);
            var manager          = new ComputationTerminationManager(0, 0, maxEpochsWFO);

            Assert.That(manager.Terminated(100, 100, elapsedEpochsWFO), Is.False);
        }
        public void MaxElapsedTimeConstraintShouldWorkWhenTimeDoesNotExeed()
        {
            var elapsedTime = rnd.Next(1000) + 1;
            var maxTime     = elapsedTime + 1 + rnd.Next(1000);
            var manager     = new ComputationTerminationManager(maxTime, 0, 0);

            Assert.That(manager.Terminated(elapsedTime, 100, 100), Is.False);
        }