AStarSearchTests CheckPathList 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 CheckPathList()
Examples

[Test]
public void CheckPathList()
{
    aStar.Search(graph, 0, 2);
    Assert.AreEqual(2, aStar.GetPath().GetListOfCoordinates().Count);
    aStar.Search(graph, 1, 5);
    Assert.AreEqual(3, aStar.GetPath().GetListOfCoordinates().Count);
}
See Also