public void TestPolygonMMeasures()
 {
     double[] measures = new double[] { 1.0, 2.0, 3.0, 4.0, 1.0 };
     PolygonMShape polygon = new PolygonMShape(1, m_metadata, m_extent, m_parts, m_positions, 1.0, 4.0, measures);
     Assert.AreEqual(1.0, polygon[0].GetMeasure(0));
     Assert.AreEqual(2.0, polygon[0].GetMeasure(1));
     Assert.AreEqual(3.0, polygon[0].GetMeasure(2));
     Assert.AreEqual(4.0, polygon[0].GetMeasure(3));
     Assert.AreEqual(1.0, polygon[0].GetMeasure(4));
 }
 public void TestPolygonMPositions()
 {
     double[] measures = new double[] { 1.0, 2.0, 3.0, 4.0, 1.0 };
     PolygonMShape polygon = new PolygonMShape(1, m_metadata, m_extent, m_parts, m_positions, 1.0, 4.0, measures);
     Assert.AreEqual(polygon[0][0], new Cartographic(0.0, 0.0, 0.0));
     Assert.AreEqual(polygon[0][1], new Cartographic(0.0, Constants.RadiansPerDegree, 0.0));
     Assert.AreEqual(polygon[0][2], new Cartographic(Constants.RadiansPerDegree, Constants.RadiansPerDegree, 0.0));
     Assert.AreEqual(polygon[0][3], new Cartographic(Constants.RadiansPerDegree, 0.0, 0.0));
     Assert.AreEqual(polygon[0][4], new Cartographic(0.0, 0.0, 0.0));
 }
 public void TestPolygonMShapeType()
 {
     double[] measures = new double[] { 1.0, 2.0, 3.0, 4.0, 1.0 };
     PolygonMShape polygon = new PolygonMShape(1, m_metadata, m_extent, m_parts, m_positions, 1.0, 4.0, measures);
     Assert.AreEqual(ShapeType.PolygonM, polygon.ShapeType);
 }