Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
        }