public void CompassToIndex() { Assert.AreEqual(0, hexagonOnEdge.CompassToIndex(Compass.North)); Assert.AreEqual(1, hexagonOnEdge.CompassToIndex(Compass.NorthEast)); Assert.AreEqual(2, hexagonOnEdge.CompassToIndex(Compass.SouthEast)); Assert.AreEqual(3, hexagonOnEdge.CompassToIndex(Compass.South)); Assert.AreEqual(4, hexagonOnEdge.CompassToIndex(Compass.SouthWest)); Assert.AreEqual(5, hexagonOnEdge.CompassToIndex(Compass.NorthWest)); Assert.AreEqual(0, hexagonOnVertex.CompassToIndex(Compass.NorthEast)); Assert.AreEqual(1, hexagonOnVertex.CompassToIndex(Compass.East)); Assert.AreEqual(2, hexagonOnVertex.CompassToIndex(Compass.SouthEast)); Assert.AreEqual(3, hexagonOnVertex.CompassToIndex(Compass.SouthWest)); Assert.AreEqual(4, hexagonOnVertex.CompassToIndex(Compass.West)); Assert.AreEqual(5, hexagonOnVertex.CompassToIndex(Compass.NorthWest)); Assert.AreEqual(0, squareOnEdge.CompassToIndex(Compass.North)); Assert.AreEqual(1, squareOnEdge.CompassToIndex(Compass.NorthEast)); Assert.AreEqual(2, squareOnEdge.CompassToIndex(Compass.East)); Assert.AreEqual(3, squareOnEdge.CompassToIndex(Compass.SouthEast)); Assert.AreEqual(4, squareOnEdge.CompassToIndex(Compass.South)); Assert.AreEqual(5, squareOnEdge.CompassToIndex(Compass.SouthWest)); Assert.AreEqual(6, squareOnEdge.CompassToIndex(Compass.West)); Assert.AreEqual(7, squareOnEdge.CompassToIndex(Compass.NorthWest)); }