public void GetCommands_LRM_LeftRightMoveCombinedList() { var parser = new RoverCommandParser("LRM"); var commandList = parser.GetCommands(); Assert.Equal(3, commandList.Count); Assert.True(commandList[0] is RoverTurnLeftCommand); Assert.True(commandList[1] is RoverTurnRightCommand); Assert.True(commandList[2] is RoverMoveForwardCommand); }
public void GetCommands_L_LeftCommand() { var parser = new RoverCommandParser() { Commands = "L" }; var commandList = parser.GetCommands(); Assert.Single(commandList); Assert.True(commandList[0] is RoverTurnLeftCommand); }
public void GetCommands_M_MoveCommand() { var parser = new RoverCommandParser() { Commands = "M" }; var commandList = parser.GetCommands(); Assert.Single(commandList); Assert.True(commandList[0] is RoverMoveForwardCommand); }