public void IndexToAngle() { Assert.AreEqual(30.0, hexagonOnEdge.IndexToAngle(2)); Assert.AreEqual(90.0, hexagonOnEdge.IndexToAngle(3)); Assert.AreEqual(150.0, hexagonOnEdge.IndexToAngle(4)); Assert.AreEqual(210.0, hexagonOnEdge.IndexToAngle(5)); Assert.AreEqual(270.0, hexagonOnEdge.IndexToAngle(6)); Assert.AreEqual(330.0, hexagonOnEdge.IndexToAngle(7)); Assert.AreEqual(60.0, hexagonOnVertex.IndexToAngle(2)); Assert.AreEqual(120.0, hexagonOnVertex.IndexToAngle(3)); Assert.AreEqual(180.0, hexagonOnVertex.IndexToAngle(4)); Assert.AreEqual(240.0, hexagonOnVertex.IndexToAngle(5)); Assert.AreEqual(300.0, hexagonOnVertex.IndexToAngle(6)); Assert.AreEqual(0.0, hexagonOnVertex.IndexToAngle(7)); Assert.AreEqual(0.0, squareOnEdge.IndexToAngle(2)); Assert.AreEqual(45.0, squareOnEdge.IndexToAngle(3)); Assert.AreEqual(90.0, squareOnEdge.IndexToAngle(4)); Assert.AreEqual(135.0, squareOnEdge.IndexToAngle(-3)); Assert.AreEqual(180.0, squareOnEdge.IndexToAngle(-2)); Assert.AreEqual(225.0, squareOnEdge.IndexToAngle(-1)); Assert.AreEqual(270.0, squareOnEdge.IndexToAngle(0)); Assert.AreEqual(315.0, squareOnEdge.IndexToAngle(1)); }