Exemplo n.º 1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void testBuildInValidPolygonWith2InnerRings()
        public virtual void testBuildInValidPolygonWith2InnerRings()
        {
            string testfile = "invalid-polygon-2-inner-rings.wkt";

            IList <TDWay> ways     = MockingUtils.wktPolygonToWays(testfile);
            Polygon       polygon  = JTSUtils.buildPolygon(ways[0], ways.subList(1, ways.Count));
            Geometry      expected = MockingUtils.readWKTFile(testfile);

            Assert.isTrue(!polygon.Valid);
            Assert.Equals(expected, polygon);
        }
Exemplo n.º 2
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void testBuildInvalidPolygon()
        public virtual void testBuildInvalidPolygon()
        {
            string testfile = "invalid-polygon.wkt";

            IList <TDWay> ways     = MockingUtils.wktPolygonToWays(testfile);
            Polygon       polygon  = JTSUtils.buildPolygon(ways[0]);
            Geometry      expected = MockingUtils.readWKTFile(testfile);

            Assert.isTrue(!polygon.Valid);
            Assert.Equals(expected, polygon);
        }