public void RebuildSpatialIndexWhenClosedThrowsExceptionTest() { ShapeFileProvider shapeFile = new ShapeFileProvider(BcRoadsShapeFile, _geoFactory); shapeFile.RebuildSpatialIndex(); shapeFile.Close(); }
public void RebuildSpatialIndexTest() { ShapeFileProvider shapeFile = new ShapeFileProvider(BcRoadsShapeFile, _geoFactory, _coordSysFactory, false); shapeFile.Open(); File.Delete(BcRoadsSpatialIndex); shapeFile.RebuildSpatialIndex(); Assert.IsTrue(File.Exists(BcRoadsSpatialIndex)); shapeFile.Close(); File.Delete(BcRoadsSpatialIndex); }