Example #1
0
        public void FindPNumberingLevel_NestedElementTest()
        {
            var instance = new ParagraphStateCacheFactory(null, null);
            var p        = DocumentSample1.GenerateParagraph1();

            var result = instance.FindAssociatedNumberingLevel(p);

            Assert.AreEqual(0, result);
        }
        public void FindNubmerindId_NumIdPropTest()
        {
            var instance = new NumberItemFactory();
            var p        = DocumentSample1.GenerateParagraph1();

            var result = instance.FindAssociatedNumberingInstance(p);

            Assert.AreEqual(1, result.Value);
        }
Example #3
0
        public void FindNubmerindId_NestedElementTest()
        {
            var instance = new ParagraphStateCacheFactory(
                null,
                null
                );
            var p = DocumentSample1.GenerateParagraph1();

            var result = instance.FindAssociatedNumberingInstance(p);

            Assert.AreEqual(1, result.Value);
        }