public IslandOptimizationStatus Test_InvalidData_3(int state) { var input = new bool[] { true, false, true, false, }; var actual = IslandValleyOptimizer.Examine(input, state); return(actual.Status); }
public IslandOptimizationStatus Test_Status(int peakIndex) { var input = new bool[] { true, true, false, }; var actual = IslandValleyOptimizer.Examine(input, peakIndex); return(actual.Status); }
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)); }