public virtual void GetPositionTest() { String data = "/Name1 70"; RandomAccessSourceFactory factory = new RandomAccessSourceFactory(); PdfTokenizer tok = new PdfTokenizer(new RandomAccessFileOrArray(factory.CreateSource(data.GetBytes(iText.IO.Util.EncodingUtil.ISO_8859_1 )))); NUnit.Framework.Assert.AreEqual(0, tok.GetPosition()); tok.NextValidToken(); NUnit.Framework.Assert.AreEqual(6, tok.GetPosition()); tok.NextValidToken(); NUnit.Framework.Assert.AreEqual(11, tok.GetPosition()); }