예제 #1
0
        public void HurdleRace2()
        {
            int jumpHeight = 4;

            int[] hurdleHeights = { 1, 6, 3, 5, 2 };

            int expected = 2;
            int actual   = HurdleRace.hurdleRace(jumpHeight, hurdleHeights);

            Assert.Equal(expected, actual);
        }
예제 #2
0
        public void HurdleRaceTest1()
        {
            int jumpHeight = 7;

            int[] hurdleHeights = { 2, 5, 4, 5, 2 };

            int expected = 0;
            int actual   = HurdleRace.hurdleRace(jumpHeight, hurdleHeights);

            Assert.Equal(expected, actual);
        }