public void TestPathfinderDynamicChangeCostOfMove() { DijkstraPathFinder pathFinder = new DijkstraPathFinder(new byte[, ] { { 1, 1, 1, 1 }, { 1, 1, 1, 1 }, { 1, 1, 1, 1 }, { 1, 1, 1, 1 } }); pathFinder.ChangeCostOfMove(1, 1, 0); pathFinder.ChangeCostOfMove(2, 2, 0); var movementInfo = pathFinder.GetHexesInMovementRange(new Point(0, 0), 8); var result = pathFinder.Find(new Point(0, 0), new Point(3, 3), movementInfo); Assert.IsNotNull(result); Assert.IsNotEmpty(result); Assert.AreEqual(5, result.Count); }