public virtual void Barcode417YHeightTest() { MemoryStream baos = new MemoryStream(); PdfWriter writer = new PdfWriter(baos); PdfDocument document = new PdfDocument(writer); PdfPage page = document.AddNewPage(); PdfCanvas canvas = new PdfCanvas(page); String text = "Call me Ishmael. Some years ago--never mind how long " + "precisely --having little or no money in my purse, and nothing " + "particular to interest me on shore, I thought I would sail about " + "a little and see the watery part of the world."; BarcodePDF417 barcode = new BarcodePDF417(); barcode.SetCode(text); barcode.SetYHeight(15); barcode.PlaceBarcode(canvas, null); document.Close(); NUnit.Framework.Assert.AreEqual(15, barcode.GetYHeight(), 0); }