Esempio n. 1
0
        public IslandOptimizationStatus Test_InvalidData_3(int state)
        {
            var input = new bool[]
            {
                true, false, true, false,
            };

            var actual = IslandValleyOptimizer.Examine(input, state);

            return(actual.Status);
        }
Esempio n. 2
0
        public IslandOptimizationStatus Test_Status(int peakIndex)
        {
            var input = new bool[]
            {
                true, true, false,
            };

            var actual = IslandValleyOptimizer.Examine(input, peakIndex);

            return(actual.Status);
        }
Esempio n. 3
0
        public void Test_Left_2()
        {
            var input = new bool[]
            {
                true, false, true,
            };

            var actual = IslandValleyOptimizer.Examine(input, 1);

            Assert.That(actual.Status, Is.EqualTo(IslandOptimizationStatus.EvenAll));
            Assert.That(actual.Left, Is.EqualTo(2));
            Assert.That(actual.Right, Is.EqualTo(0));
            Assert.That(actual.Peak, Is.EqualTo(1));
        }