public virtual void SetAndGetBorderStylePdfNameTest() { PdfLineAnnotation pdfLineAnnotation = new PdfLineAnnotation(new PdfDictionary()); pdfLineAnnotation.SetBorderStyle(PdfName.D); NUnit.Framework.Assert.AreEqual(PdfName.D, pdfLineAnnotation.GetBorderStyle().GetAsName(PdfName.S)); }
public virtual void SetDashPatternTest() { PdfLineAnnotation pdfLineAnnotation = new PdfLineAnnotation(new PdfDictionary()); PdfArray array = new PdfArray(new float[] { 1, 2 }); pdfLineAnnotation.SetDashPattern(array); NUnit.Framework.Assert.AreEqual(array.ToFloatArray(), pdfLineAnnotation.GetBorderStyle().GetAsArray(PdfName .D).ToFloatArray()); }
public virtual void SetAndGetBorderStylePdfDictTest() { PdfLineAnnotation pdfLineAnnotation = new PdfLineAnnotation(new PdfDictionary()); PdfDictionary dict = new PdfDictionary(); dict.Put(PdfName.Width, new PdfNumber(1)); pdfLineAnnotation.SetBorderStyle(dict); NUnit.Framework.Assert.AreEqual(dict, pdfLineAnnotation.GetBorderStyle()); }