Example #1
0
        public virtual void SetAndGetLeaderLineLengthTest()
        {
            PdfLineAnnotation pdfLineAnnotation = new PdfLineAnnotation(new PdfDictionary());
            float             length            = 1f;

            pdfLineAnnotation.SetLeaderLineLength(length);
            NUnit.Framework.Assert.AreEqual(length, pdfLineAnnotation.GetLeaderLineLength(), FLOAT_EPSILON_COMPARISON);
        }
Example #2
0
        public virtual void GetLeaderLineLengthNullTest()
        {
            PdfLineAnnotation pdfLineAnnotation = new PdfLineAnnotation(new PdfDictionary());

            NUnit.Framework.Assert.AreEqual(0, pdfLineAnnotation.GetLeaderLineLength(), FLOAT_EPSILON_COMPARISON);
        }