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); }
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); }