public void TestCoordinateStepsSouthDecreasesY() { var start = new Coordinate { X = 10, Y = 10 }; start.OneStep(CardinalDirection.South); RobotAssert.AreEqual(start, 10, 9); }
public void TestCoordinateStepsWestDecreasesX() { var start = new Coordinate { X = 10, Y = 10 }; start.OneStep(CardinalDirection.West); RobotAssert.AreEqual(start, 9, 10); }
public void TestCoordinateStepsNorthIncreasesY() { var start = new Coordinate { X = 10, Y = 10 }; start.OneStep(CardinalDirection.North); RobotAssert.AreEqual(start, 10, 11); }