public void GetFeatureShouldWorkForShapeFileWithoutObjectID() { const string path = SharpMapTestDataPath + "gemeenten.shp"; var s = new OgrFeatureProvider(path, Path.GetFileNameWithoutExtension(path)); var feature = s.Features[0]; Assert.Less(-1, s.IndexOf((IFeature) feature)); }
public void GetFeatureShouldWorkForShapeFile() { const string path = SharpMapTestDataPath + "Europe_Lakes.shp"; using (var s = new OgrFeatureProvider(path, Path.GetFileNameWithoutExtension(path))) { var feature = s.Features[0]; Assert.Less(-1, s.IndexOf((IFeature) feature)); } }