Beispiel #1
0
 public void Test_RightAfterPlaceCmd()
 {
     Robot robot = new Robot();
     PlaceAtOrigin(robot);
     robot.Right();
     Assert.AreEqual(robot.Face, Direction.East);
 }
Beispiel #2
0
 public void Test_ReportAfterPlaceCmd()
 {
     Robot robot = new Robot();
     PlaceAtOrigin(robot);
     robot.Move();
     robot.Right();
     Assert.AreEqual(robot.Report(), "Output: 0,1,EAST");
 }
Beispiel #3
0
 public void Test_RightBeforePlaceCmd()
 {
     Robot robot = new Robot();
     Assert.IsFalse(robot.Right());
 }