public void BeepCommandTest() { var rf = new RobotFactory(new Robot()); ACommand command = new BeepCommand(rf); string result = command.Execute(); Assert.AreEqual(result, "BEEP >> True"); }
public void TurnCommandTestInvalid() { var rf = new RobotFactory(new Robot()); rf.SetArgument = 450; ACommand command = new TurnCommand(rf); string result = command.Execute(); Assert.AreEqual(result, "TURN 450 >> False"); }
public void MoveCommandTestInvalid() { var rf = new RobotFactory(new Robot()); rf.SetArgument = -100; ACommand command = new MoveCommand(rf); string result = command.Execute(); Assert.AreEqual(result, "MOVE -100 >> False"); }