LevelGraphTests CheckForGraphBranches Method Delta Engine Documentation

Namespace: DeltaEngine.GameLogic.PathFinding.Tests
Assembly: DeltaEngine.GameLogic.PathFinding.Tests (in DeltaEngine.GameLogic.PathFinding.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public void CheckForGraphBranches()
Examples

[Test]
public void CheckForGraphBranches()
{
    Assert.AreEqual(1, grid3X2.AdjacentLinks[0][0].TargetNode);
    Assert.AreEqual(3, grid3X2.AdjacentLinks[0][1].TargetNode);
    Assert.AreEqual(0, grid3X2.AdjacentLinks[1][0].TargetNode);
    Assert.AreEqual(2, grid3X2.AdjacentLinks[1][1].TargetNode);
    Assert.AreEqual(4, grid3X2.AdjacentLinks[1][2].TargetNode);
    Assert.AreEqual(1, grid3X2.AdjacentLinks[2][0].TargetNode);
    Assert.AreEqual(5, grid3X2.AdjacentLinks[2][1].TargetNode);
}
See Also