public void OneRightFromEast() { RightTurn RightTurn = new RightTurn(); Direction direction = Direction.E; Point location = new Point(0, 0); RightTurn.ExecuteMove(ref direction, ref location); Assert.AreEqual(Direction.S, direction); Assert.AreEqual(new Point(0, 0), location); }
public void FourRightFromNorth() { RightTurn RightTurn = new RightTurn(); Direction direction = Direction.N; 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.N, direction); Assert.AreEqual(new Point(0, 0), location); }
public void ThreeRightFromSouth() { RightTurn RightTurn = new RightTurn(); Direction direction = Direction.S; 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.E, direction); Assert.AreEqual(new Point(0, 0), location); }