public void TestSTWKTToSQL() { using (var db = new PostGisTestDataConnection(TestDatabaseConnectionString)) { const string Wkt1 = "LINESTRING (1 2, 3 4)"; var g1 = db.Select(() => GeometryInput.STWKTToSQL(Wkt1)); Assert.AreEqual(Wkt1, g1.AsText()); Assert.AreEqual(-1, g1.SRID); Assert.IsNull(db.Select(() => GeometryInput.STWKTToSQL(null))); } }