Example #1
0
        public void MoveSouth()
        {
            int           x = 1000, y = -99, moveDistance = 10;
            CleaningRobot robot = CreateTesterRobot(x, y);

            robot.Move("S", moveDistance);
            Assert.AreEqual(y - moveDistance, robot.YCoordinate);
        }
Example #2
0
        public void MoveWest()
        {
            int           x = 1000, y = -99, moveDistance = 3;
            CleaningRobot robot = CreateTesterRobot(x, y);

            robot.Move("W", moveDistance);
            Assert.AreEqual(x - moveDistance, robot.XCoordinate);
        }