Пример #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);
        }
Пример #2
0
        public void FindPNumberingLevel_BasedOnStyleTest()
        {
            var instance = new ParagraphStateCacheFactory(
                DocumentSample1.GenerateStyles(),
                null
                );
            var p = DocumentSample1.GenerateParagraph3();

            var result = instance.FindAssociatedNumberingLevel(p);

            Assert.AreEqual(0, result);
        }
Пример #3
0
        public void FindPNumberingLevel_NoProperties()
        {
            var instance = new ParagraphStateCacheFactory(
                null,
                null
                );
            var p = new Paragraph();

            var result = instance.FindAssociatedNumberingLevel(p);

            Assert.AreEqual(0, result);
        }