Example #1
0
        public void Test_MoveAfterPlaceCmd()
        {
            Robot robot = new Robot();

            PlaceAtOrigin(robot);
            
            Assert.IsTrue(robot.Move());
        }
Example #2
0
 public void Test_ReportAfterPlaceCmd()
 {
     Robot robot = new Robot();
     PlaceAtOrigin(robot);
     robot.Move();
     robot.Right();
     Assert.AreEqual(robot.Report(), "Output: 0,1,EAST");
 }
Example #3
0
 public void Test_MoveBeforePlaceCmd()
 {
     Robot robot = new Robot();
     Assert.IsFalse(robot.Move());
 }