public void when_the_rover_move_to_a_position_that_is_occupied_the_last_empty_position_is_returned() { var sut = new MarsRover(new Grid(new List <Coordinates>() { new Coordinates { X = 0, Y = 3 } })); Assert.Equal("O:0:2:N", sut.Execute("MMMM")); }
public void rover_should_ignore_invalid_commands(string command, string expectedOutput) { var sut = new MarsRover(); Assert.Equal(expectedOutput, sut.Execute(command)); }
public void rover_should_wrap_round_edges_of_grid(string command, string expectedOutput) { var sut = new MarsRover(); Assert.Equal(expectedOutput, sut.Execute(command)); }
public void rover_should_turn_right(string command, string expectedOutput) { var sut = new MarsRover(); Assert.Equal(expectedOutput, sut.Execute(command)); }
public void rover_should_move_in_expected_direction(string command, string expectedOutput) { var sut = new MarsRover(); Assert.Equal(expectedOutput, sut.Execute(command)); }