public void TestAllowingDiagonalPaths() { var grid = new MockLevelGraph(3, 2); Assert.AreEqual(1, grid.AdjacentLinks[0][0].TargetNode); Assert.AreEqual(3, grid.AdjacentLinks[0][1].TargetNode); Assert.AreEqual(4, grid.AdjacentLinks[0][2].TargetNode); Assert.AreEqual(0, grid.AdjacentLinks[1][0].TargetNode); Assert.AreEqual(2, grid.AdjacentLinks[1][1].TargetNode); Assert.AreEqual(4, grid.AdjacentLinks[1][2].TargetNode); Assert.AreEqual(5, grid.AdjacentLinks[1][3].TargetNode); Assert.AreEqual(3, grid.AdjacentLinks[1][4].TargetNode); Assert.AreEqual(1, grid.AdjacentLinks[2][0].TargetNode); Assert.AreEqual(5, grid.AdjacentLinks[2][1].TargetNode); Assert.AreEqual(4, grid.AdjacentLinks[2][2].TargetNode); }