public void NeighboursFarTest() { HexBoardNeighbours testBoard = new HexBoardNeighbours(10); Location inValue = new Location(9, 9); Location[] outValue = testBoard.Neighbours(inValue); Assert.IsNotNull(outValue); Assert.AreEqual(2, outValue.Length); Assert.AreEqual(2, testBoard.NeighbourCount(inValue)); TestNeighbours(testBoard, inValue, outValue); }
public void NeighboursOffTest() { HexBoardNeighbours testBoard = new HexBoardNeighbours(5); Location inValue = new Location(5, 0); Location[] outValue = testBoard.Neighbours(inValue); Assert.IsNotNull(outValue); Assert.AreEqual(0, outValue.Length); Assert.AreEqual(0, testBoard.NeighbourCount(inValue)); }