public void ExploreFromOutsideTheUpperBoundsOfYAndGetAnOutOfRangeException() { var world = WorldBuilder.CreateStandardEmptyWorld(); var explorer = new PathfinderEngine(world.Width, world.Height, new BooleanMapCostCalculator(world), new EmptyHeuristicCalculator()); explorer.ExploreFrom(new Coordinate(0, world.Height)); }
private void SetupWorld(int width, int height) { _world = WorldBuilder.CreateEmptyWorld(width, height); _costCalc = new BooleanMapCostCalculator(_world); _heuristicCalc = new TargetedHeuristic(new Coordinate(0, 0)); _explorer = new PathfinderEngine(_world.Width, _world.Height, _costCalc, _heuristicCalc); }