Ejemplo n.º 1
0
        public void Test_MoveAfterPlaceCmd()
        {
            Robot robot = new Robot();

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