コード例 #1
0
            public void IsValidGeographyFromTextTest()
            {
                var geogText = "CURVEPOLYGON (CIRCULARSTRING (0 -4, 4 0, 0 4, -4 0, 0 -4)";

                Logger.LogLine("Input Geography: {0}", geogText);
                var result = Geography.IsValidGeographyFromText(geogText, Constants.DefaultSRID);

                Logger.LogLine("Expected result: false, Obtained result: {0}", result);
                SqlAssert.IsFalse(result);

                geogText = "CURVEPOLYGON (CIRCULARSTRING (0 -4, 4 0, 0 4, -4 0, 0 -4))";
                Logger.LogLine("Input Geography: {0}", geogText);
                result = Geography.IsValidGeographyFromText(geogText, Constants.DefaultSRID);
                Logger.LogLine("Expected result: false, Obtained result: {0}", result);
                SqlAssert.IsTrue(result);
            }