public virtual void TestCreation() { // simple create com.esri.core.geometry.Polygon poly = new com.esri.core.geometry.Polygon(); int number = poly.GetStateFlag(); NUnit.Framework.Assert.IsTrue(poly != null); // assertTrue(poly.getClass() == Polygon.class); // assertFalse(poly.getClass() == Envelope.class); NUnit.Framework.Assert.IsTrue(poly.GetType() == com.esri.core.geometry.Geometry.Type.Polygon); NUnit.Framework.Assert.IsTrue(poly.IsEmpty()); NUnit.Framework.Assert.IsTrue(poly.GetPointCount() == 0); NUnit.Framework.Assert.IsTrue(poly.GetPathCount() == 0); number = poly.GetStateFlag(); poly = null; NUnit.Framework.Assert.IsFalse(poly != null); // play with default attributes com.esri.core.geometry.Polygon poly2 = new com.esri.core.geometry.Polygon(); }