public virtual void SetAndGetVerticesFloatArrayTest() { PdfPolyGeomAnnotation pdfPolyGeomAnnotation = new PdfPolygonAnnotation(new PdfDictionary()); float[] vertices = new float[] { 1, 1, 1, 1 }; pdfPolyGeomAnnotation.SetVertices(vertices); NUnit.Framework.Assert.AreEqual(vertices, pdfPolyGeomAnnotation.GetVertices().ToFloatArray()); }
public virtual void SetAndGetVerticesFloatArrayLogMessageTest() { PdfDictionary dict = new PdfDictionary(); dict.Put(PdfName.Path, new PdfString("")); PdfPolyGeomAnnotation pdfPolyGeomAnnotation = new PdfPolygonAnnotation(dict); float[] vertices = new float[] { 1, 1, 1, 1 }; pdfPolyGeomAnnotation.SetVertices(vertices); NUnit.Framework.Assert.AreEqual(vertices, pdfPolyGeomAnnotation.GetVertices().ToFloatArray()); }