Example #1
0
 public void ShortestPathCanCreateVisibilityGraphTest()
 {
     // Create visibility graph used to calculate the shortest path
     visibilityGraph = PathFinding.CreateVisibilityGraph(new List <Polygon> {
         boundary
     }, new List <Polygon> {
         internalPolygon
     });
     // Check if the visibility graph is created properly
     Assert.IsTrue(!visibilityGraph.Equals(null));
 }
Example #2
0
 public void ShortestPathCanCreateVisibilityGraphTest()
 {
     // Create visibility graph used to calculate the shortest path
     this.visibilityGraph = PathFinding.CreateVisibilityGraph(new List <Polygon> {
         this.boundary
     }, new List <Polygon> {
         this.internalPolygon
     });
     // Check if the visibility graph is created properly
     Assert.IsNotNull(this.visibilityGraph);
 }