Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
 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);
 }
Ejemplo n.º 3
0
 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);
 }