Example #1
0
 public virtual void testCopy()
 {
     com.esri.core.geometry.Point pt     = new com.esri.core.geometry.Point();
     com.esri.core.geometry.Point copyPt = (com.esri.core.geometry.Point)pt.copy();
     NUnit.Framework.Assert.IsTrue(copyPt.Equals(pt));
     pt.setXY(11, 13);
     copyPt = (com.esri.core.geometry.Point)pt.copy();
     NUnit.Framework.Assert.IsTrue(copyPt.Equals(pt));
     NUnit.Framework.Assert.IsTrue(copyPt.getXY().isEqual(new com.esri.core.geometry.Point2D
                                                              (11, 13)));
     NUnit.Framework.Assert.IsTrue(copyPt.getXY().Equals((object)new com.esri.core.geometry.Point2D
                                                             (11, 13)));
 }