Пример #1
0
        public void  MoveRover_GivenSingleCommand_ReturnCorrectPosition(string[] input, string expectedRoverPosition)
        {
            var   plateau       = CommandHelper.GetPlateauFromCommandText(input[0]);
            var   roverPosition = CommandHelper.GetRoverPositionFromCommandText(input[1]);
            var   roverCommands = CommandHelper.GetRoverCommandsFromCommandText(input[2]);
            Rover rover         = new Rover(plateau, roverPosition);

            rover.ExecuteCommands(roverCommands);

            Assert.Equal(rover.GetRoverPositionDetailedString(), expectedRoverPosition);
        }