public void TestSTGeometryN() { const string Ewkt = @"TIN ((( 0 0 0, 0 0 1, 0 1 0, 0 0 0 )), (( 0 0 0, 0 1 0, 1 1 0, 0 0 0 )))"; using (var db = new PostGisTestDataConnection(TestDatabaseConnectionString)) { Assert.AreEqual( "TRIANGLE((0 0 0,0 1 0,1 1 0,0 0 0))", db.Select(() => GeometryInput.STGeomFromEWKT(Ewkt) .STGeometryN(2) .STAsEWKT())); Assert.AreEqual( "TRIANGLE((0 0 0,0 1 0,1 1 0,0 0 0))", db.Select(() => GeometryAccessors.STGeometryN(Ewkt, 2) .STAsEWKT())); Assert.IsNull(db.Select(() => GeometryAccessors.STGeometryN((NTSG)null, 1))); } }