Azavea.NijPredictivePolicing.Test.ACSAlchemistLibrary.AcsDataManagerTests.GetShapefileFeatures C# (CSharp) Method

GetShapefileFeatures() private method

private GetShapefileFeatures ( ) : void
return void
        public void GetShapefileFeatures()
        {
            var features = new List<IGeometry>();
            var features2 = new List<IGeometry>();

            var man = GetManager();

            features = man.GetFilteringGeometries(GetShapePath(man, "DoesNotExist.shp"),
                GeographicCoordinateSystem.WGS84);
            Assert.AreEqual(null, features, "Shapefile shouldn't exist!");

            features = man.GetFilteringGeometries(GetShapePath(man, "bg42_d00.shp"), GeographicCoordinateSystem.WGS84);
            Assert.AreEqual(null, features, "Shapefile shouldn't exist!");

            features = man.GetFilteringGeometries(GetShapePath(man, "bg42_d00_nosrid.shp"),
                GeographicCoordinateSystem.WGS84);

            Assert.Greater(features.Count, 0, "Should be more than zero features!");

            features = man.GetFilteringGeometries(GetShapePath(man, "bg42_d00_srid.shp"),
                GeographicCoordinateSystem.WGS84);
            Assert.Greater(features.Count, 0, "Should be more than zero features!");

            features2 = man.GetFilteringGeometries(GetShapePath(man, "bg42_d00_srid.shp"),
                GeographicCoordinateSystem.WGS84);
        }