public void FourRightFromWest() { RightTurn RightTurn = new RightTurn(); Direction direction = Direction.W; Point location = new Point(0, 0); RightTurn.ExecuteMove(ref direction, ref location); RightTurn.ExecuteMove(ref direction, ref location); RightTurn.ExecuteMove(ref direction, ref location); RightTurn.ExecuteMove(ref direction, ref location); Assert.AreEqual(Direction.W, direction); Assert.AreEqual(new Point(0, 0), location); }
public void OneRightFromNorth() { RightTurn RightTurn = new RightTurn(); Direction direction = Direction.N; Point location = new Point(0, 0); RightTurn.ExecuteMove(ref direction, ref location); Assert.AreEqual(Direction.E, direction); Assert.AreEqual(new Point(0, 0), location); }
public void ThreeRightFromEast() { RightTurn RightTurn = new RightTurn(); Direction direction = Direction.E; Point location = new Point(0, 0); RightTurn.ExecuteMove(ref direction, ref location); RightTurn.ExecuteMove(ref direction, ref location); RightTurn.ExecuteMove(ref direction, ref location); Assert.AreEqual(Direction.N, direction); Assert.AreEqual(new Point(0, 0), location); }