public virtual void TestMultiPointAndMultiPoint1() { com.epl.geometry.MultiPoint basePl = new com.epl.geometry.MultiPoint(); basePl.Add(new com.epl.geometry.Point(-116, 20)); basePl.Add(new com.epl.geometry.Point(-117, 20)); com.epl.geometry.MultiPoint compPl = new com.epl.geometry.MultiPoint(); compPl.Add(new com.epl.geometry.Point(-116, 20)); compPl.Add(new com.epl.geometry.Point(-118, 21)); int noException = 1; // no exception com.epl.geometry.Geometry intersectGeom = null; try { intersectGeom = com.epl.geometry.GeometryEngine.Intersect(basePl, compPl, com.epl.geometry.SpatialReference.Create(4326)); } catch (System.Exception) { noException = 0; } NUnit.Framework.Assert.AreEqual(noException, 1); NUnit.Framework.Assert.IsNotNull(intersectGeom); NUnit.Framework.Assert.IsTrue(intersectGeom.GetType() == com.epl.geometry.Geometry.Type.MultiPoint); com.epl.geometry.MultiPoint imp = (com.epl.geometry.MultiPoint)intersectGeom; NUnit.Framework.Assert.AreEqual(imp.GetCoordinates2D().Length, 1); NUnit.Framework.Assert.AreEqual(imp.GetCoordinates2D()[0].x, -116, 0.0); NUnit.Framework.Assert.AreEqual(imp.GetCoordinates2D()[0].y, 20, 0.0); }