public void ShouldFindPathWithNonZeroStartingPosition() { var grid = GridCatalog.UnobstructedGrid(); var path = grid.GetPath(new Position(3, 3), new Position(5, 3)); Assert.NotNull(path); Assert.Equal(3, path.Length); }
public void ShouldRespectIterationLimit() { var grid = GridCatalog.UnobstructedGrid(); var path = grid.GetPath(new Position(0, 0), new Position(8, 8), MovementPatterns.Full, AgentShapes.Dot, 8); Assert.NotNull(path); Assert.Empty(path); }
public void ShouldFindPathInUnobstructedGrid() { var grid = GridCatalog.UnobstructedGrid(); var path = grid.GetPath(new Position(0, 0), new Position(8, 8)); Assert.NotNull(path); Assert.Equal(9, path.Length); }