public void _1_4_GetDistanceBetween() { var currentMazeElement = GetMazeElementMock(new Vector2(9, 7)); var destinationMazeElement = GetMazeElementMock(new Vector2(5, 4)); AStarEuclideanDistanceHeuristic AStarEuclideanDistanceHeuristic = new AStarEuclideanDistanceHeuristic(); float distance = AStarEuclideanDistanceHeuristic.GetDistanceBetween(currentMazeElement, destinationMazeElement); Assert.AreEqual(distance, 5); }
IAStarDistanceHeuristic GetAStarDistanceHeuristic() { var aStarWeightHeuristic = new AStarEuclideanDistanceHeuristic(); return(aStarWeightHeuristic); }