Beispiel #1
0
        private void ShouldStop_Max_steps(uint maxSteps)
        {
            _stopCriteria = new Heater <Solution>(_cooler.Object, OptimizationType.Maximization, maxSteps, 1000, 5);
            var step = 0u;

            while (!_stopCriteria.ShouldStop(_mockedSolution.Object))
            {
                step++;
            }

            Assert.Equal(maxSteps, step);
        }