public virtual void CheckNumberOfIndirectObjectsWithRandomNumbersTest()
        {
            PdfXrefTable table = new PdfXrefTable();
            int          numberOfReferences = 10;

            for (int i = 0; i < numberOfReferences; i++)
            {
                table.Add(new PdfIndirectReference(null, i * 25));
            }
            NUnit.Framework.Assert.AreEqual(numberOfReferences, table.GetCountOfIndirectObjects());
            NUnit.Framework.Assert.AreEqual(226, table.Size());
        }
        public virtual void CheckNumberOfIndirectObjectsWithFreeReferencesTest()
        {
            PdfXrefTable table = new PdfXrefTable();
            int          numberOfReferences = 10;

            for (int i = 0; i < numberOfReferences; i++)
            {
                table.Add(new PdfIndirectReference(null, i + 1));
            }
            table.InitFreeReferencesList(null);
            int freeReferenceNumber = 5;

            table.FreeReference(table.Get(freeReferenceNumber));
            NUnit.Framework.Assert.AreEqual(numberOfReferences - 1, table.GetCountOfIndirectObjects());
            NUnit.Framework.Assert.IsTrue(table.Get(freeReferenceNumber).IsFree());
        }