public virtual void SetAndGetBorderStylePdfNameTest() { PdfPolyGeomAnnotation pdfPolyGeomAnnotation = new PdfPolygonAnnotation(new PdfDictionary()); pdfPolyGeomAnnotation.SetBorderStyle(PdfName.D); NUnit.Framework.Assert.AreEqual(PdfName.D, pdfPolyGeomAnnotation.GetBorderStyle().GetAsName(PdfName.S)); }
public virtual void SetAndGetBorderStylePdfDictTest() { PdfPolyGeomAnnotation pdfPolyGeomAnnotation = new PdfPolygonAnnotation(new PdfDictionary()); PdfDictionary style = new PdfDictionary(); style.Put(PdfName.Width, new PdfNumber(1)); pdfPolyGeomAnnotation.SetBorderStyle(style); NUnit.Framework.Assert.AreEqual(style, pdfPolyGeomAnnotation.GetBorderStyle()); }