public void TestEmptyDocument()
        {
            HWPFDocument doc = HWPFTestDataSamples.OpenSampleFile("empty.doc");

            RevisionMarkAuthorTable rmt = doc.GetRevisionMarkAuthorTable();

            Assert.IsNull(rmt);
        }
        public void TestSimpleDocument()
        {
            HWPFDocument doc = HWPFTestDataSamples.OpenSampleFile("two_images.doc");

            RevisionMarkAuthorTable rmt = doc.GetRevisionMarkAuthorTable();

            Assert.IsNotNull(rmt);
            Assert.AreEqual(1, rmt.GetSize());
            Assert.AreEqual("Unknown", rmt.GetAuthor(0));

            Assert.AreEqual(null, rmt.GetAuthor(1));
            Assert.AreEqual(null, rmt.GetAuthor(2));
            Assert.AreEqual(null, rmt.GetAuthor(3));
        }
        public void TestMultipleAuthors()
        {
            HWPFDocument doc = HWPFTestDataSamples.OpenSampleFile("MarkAuthorsTable.doc");

            RevisionMarkAuthorTable rmt = doc.GetRevisionMarkAuthorTable();

            Assert.IsNotNull(rmt);
            Assert.AreEqual(4, rmt.GetSize());
            Assert.AreEqual("Unknown", rmt.GetAuthor(0));
            Assert.AreEqual("BSanders", rmt.GetAuthor(1));
            Assert.AreEqual(" ", rmt.GetAuthor(2));
            Assert.AreEqual("Ryan Lauck", rmt.GetAuthor(3));

            Assert.AreEqual(null, rmt.GetAuthor(4));
            Assert.AreEqual(null, rmt.GetAuthor(5));
            Assert.AreEqual(null, rmt.GetAuthor(6));
        }