public void ChangePosition_ActionPassed() { robotMove.Place(0, 0, Facing.NORTH); robotMove.ChangePosition(); var newState = robotMove.ToString(); Assert.AreEqual("X: 0, Y: 1, Facing: NORTH", newState, "Robot placed successfully."); }
private void MoveRobot() { if (robot.CanAction(ActionType.MOVE)) { robot.ChangePosition(); Console.WriteLine("Robot has been successfully moved to " + robot.Report()); } else { Console.WriteLine("Move action cannot be taken before the robot gets placed onto the table."); } }