public void TestGetNextPosition_CurrentDirectionSouth() { var robot = new ToyRobot { Direction = Direction.South, Position = new Position(0, 1) }; var nextPosition = robot.GetNextPosition(); Assert.AreEqual(0, nextPosition.X); Assert.AreEqual(0, nextPosition.Y); }
public void TestGetNextPosition_CurrentDirectionEast() { var robot = new ToyRobot { Direction = Direction.East, Position = new Position(0, 0) }; var nextPosition = robot.GetNextPosition(); Assert.AreEqual(1, nextPosition.X); Assert.AreEqual(0, nextPosition.Y); }