Azavea.NijPredictivePolicing.Test.ACSAlchemistLibrary.ShapefileHelperTests.ForbiddenNames C# (CSharp) Method

ForbiddenNames() private method

private ForbiddenNames ( ) : void
return void
        public void ForbiddenNames()
        {
            Assert.AreEqual(ShapefileHelper.IsForbiddenShapefileName(null), true);
            Assert.AreEqual(ShapefileHelper.IsForbiddenShapefileName(""), true);

            Assert.AreEqual(ShapefileHelper.IsForbiddenShapefileName("bg00_d00.shp"), true);
            Assert.AreEqual(ShapefileHelper.IsForbiddenShapefileName("tr99_d00"), true);
            Assert.AreEqual(ShapefileHelper.IsForbiddenShapefileName("cs55_d00.shp"), true);

            // Right now we don't have the settings to test these, and they aren't used by the app currently anyway
            //Assert.AreEqual(ShapefileHelper.IsForbiddenShapefileName("z327_d00"), true);
            //Assert.AreEqual(ShapefileHelper.IsForbiddenShapefileName("zt00_d00.shp"), true);
            //Assert.AreEqual(ShapefileHelper.IsForbiddenShapefileName("vt00_d00"), true);
            //Assert.AreEqual(ShapefileHelper.IsForbiddenShapefileName("co00_d00.shp"), true);
            //Assert.AreEqual(ShapefileHelper.IsForbiddenShapefileName("co00_d00"), true);

            Assert.AreEqual(ShapefileHelper.IsForbiddenShapefileName("co00_d0a_shp.zip"), false);
            Assert.AreEqual(ShapefileHelper.IsForbiddenShapefileName("co00_da0_shp.zip"), false);
            Assert.AreEqual(ShapefileHelper.IsForbiddenShapefileName("co00_daa_shp.zip"), false);
            Assert.AreEqual(ShapefileHelper.IsForbiddenShapefileName("co00_d00_shp.zip"), false);
        }
ShapefileHelperTests