Beispiel #1
0
        public void JumpMazeCalculator_ReturnsCorrectNumberOfSteps_ForPart2()
        {
            var stepsToExit = JumpMazeCalculator.StepsToEscape(_offsets, JumpMazeCalculator.Part2OffsetChange);

            Assert.Equal(10, stepsToExit);
        }
Beispiel #2
0
        public void JumpMazeCalculator_ReturnsCorrectNumberOfSteps_ForPart1()
        {
            var stepsToExit = JumpMazeCalculator.StepsToEscape(_offsets, i => i + 1);

            Assert.Equal(5, stepsToExit);
        }