public void GoNorth() { Cubic origin = new Cubic(0, 0, 0, Orientation.FLAT_TOP, Scew.even); Cubic northernNeighbor = (Cubic)origin.GetNeighbor(Direction.NORTH); Assert.AreEqual(northernNeighbor.Z, origin.Z - 1); Assert.AreEqual(northernNeighbor.Y, origin.Y + 1); }
public void GoNorthWhenThereIsNoNorth() { Cubic origin = new Cubic(0, 0, 0, Orientation.CORNER_TOP, Scew.even); origin.GetNeighbor(Direction.NORTH); }