public void ToSqlGeographyValidFeatureTest() { SqlGeography sqlFeature = feature.ToSqlGeography(); Assert.IsNotNull(feature); Assert.IsNotNull(sqlFeature); Assert.AreEqual(sqlFeature.STGeometryType().Value, OpenGisGeometryType.Polygon.ToString()); Assert.AreEqual(sqlFeature.STNumPoints().Value, polygon.Coordinates.SelectMany(ls => ls.Coordinates).Count()); }