public void TestServiceLaneSolution(int[] widthArray, int entryIndex, int exitIndex, int expectedMaxWidth) { // Arrange Solutions.Implementation.ServiceLane.Solution solution = new Solutions.Implementation.ServiceLane.Solution(widthArray); //Act int actualMaxWidth = solution.FindLocalMinimum(entryIndex, exitIndex); // Assert NUnit.Framework.Assert.AreEqual(expectedMaxWidth, actualMaxWidth); }
public void TestServiceLaneSolution(int[] widthArray, int entryIndex, int exitIndex, int expectedMaxWidth) { // Arrange Solutions.Implementation.ServiceLane.Solution solution = new Solutions.Implementation.ServiceLane.Solution(widthArray); //Act int actualMaxWidth = solution.FindLocalMinimum(entryIndex, exitIndex); // Assert NUnit.Framework.Assert.AreEqual(expectedMaxWidth, actualMaxWidth); }