Example #1
0
 private void PlaceRobot(int x, int y, Facing direction)
 {
     if (robot.CanAction(ActionType.PLACE))
     {
         robot.Place(x, y, direction);
         Console.WriteLine("Robot has been successfully placed to " + robot.Report());
     }
     else
     {
         Console.WriteLine("Place action cannot be taken.");
     }
 }
 public void Place_CanAction_ActionPassed()
 {
     Assert.IsTrue(robotMove.CanAction(ActionType.PLACE), "Place action passed.");
 }