public void TestGetFeatureCount() { SharpMap.Data.Providers.SqlServer2008 sq = GetTestProvider(); int count = sq.GetFeatureCount(); Assert.AreEqual(100, count); }
public void TestGetFeatureCount(SharpMap.Data.Providers.SqlServerSpatialObjectType spatialType) { SharpMap.Data.Providers.SqlServer2008 sq = GetTestProvider(spatialType); int count = sq.GetFeatureCount(); // includes NULL, EMPTY, and INVALID geoms NUnit.Framework.Assert.AreEqual(_numFeatures, count); }
public void TestGetFeatureCountWithDefinitionQuery() { SharpMap.Data.Providers.SqlServer2008 sq = GetTestProvider(); sq.DefinitionQuery = "NAME LIKE 'A%'"; int count = sq.GetFeatureCount(); Assert.LessOrEqual(count, 100); }
public void TestGetFeatureCountWithDefinitionQuery(SharpMap.Data.Providers.SqlServerSpatialObjectType spatialType) { SharpMap.Data.Providers.SqlServer2008 sq = GetTestProvider(SqlServerProviderMode.WellKnownBinary, spatialType); sq.DefinitionQuery = "NAME LIKE 'A%'"; int count = sq.GetFeatureCount(); NUnit.Framework.Assert.LessOrEqual(count, _numValidGeoms); }