Esempio n. 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);
        }
Esempio n. 2
0
        public void FindNubmerindId_NumIdPropTest()
        {
            var instance = new NumberItemFactory();
            var p        = DocumentSample1.GenerateParagraph1();

            var result = instance.FindAssociatedNumberingInstance(p);

            Assert.AreEqual(1, result.Value);
        }
Esempio n. 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);
        }