Exemplo n.º 1
0
        public void ReturnExceptionWhenCommandSendsRoverOutOfPlateau(string input)
        {
            var marsRover = new MarsRover(input);

            marsRover.Invoking(y => y.Navigate())
            .Should().Throw <InvalidCommandException>()
            .WithMessage("Command is invalid: Rover is sent outside the Plateau");
        }