public void LeftTest(string f)
        {
            Location location = new Location()
            {
                X = 0,
                Y = 0,
                F = f
            };

            robot.Location    = location;
            robot.Initialised = true;

            var result = _robotSimulator.Left(robot);

            Assert.Equal("WEST", result.Location.F);
        }
Beispiel #2
0
 public void RotateLeft()
 {
     Assert.IsTrue(oRobotSimulator.Place("0,0,NORTH"));
     Assert.IsTrue(oRobotSimulator.Left());
     Assert.AreEqual(oRobotSimulator.Report(), "0,0,WEST");
 }