Example #1
0
        public virtual void CreatePolylineTest()
        {
            Rectangle rect = new Rectangle(10, 10);

            float[] vertices = new float[] { 1, 1, 1, 1 };
            PdfPolyGeomAnnotation pdfPolyGeomAnnotation = PdfPolyGeomAnnotation.CreatePolyLine(rect, vertices);

            NUnit.Framework.Assert.IsTrue(pdfPolyGeomAnnotation.GetRectangle().ToRectangle().EqualsWithEpsilon(rect),
                                          "Rectangles are not equal");
            NUnit.Framework.Assert.AreEqual(vertices, pdfPolyGeomAnnotation.GetVertices().ToFloatArray());
        }