public void RobotNotPlaced_Left_ActionFailed()
        {
            var originalState = robotMove.ToString();

            robotMove.Left();
            var newState = robotMove.ToString();

            Assert.AreEqual(originalState, newState, "Left action failed - First place robot on table.");
        }
示例#2
0
 private void LeftRotateRobot()
 {
     if (robot.CanAction(ActionType.LEFT))
     {
         robot.Left();
         Console.WriteLine("Robot has been successfully left rotated to " + robot.Report());
     }
     else
     {
         Console.WriteLine("Left action cannot be taken before the robot gets placed onto the table.");
     }
 }