Example #1
0
        public void CreateCache_SkipTest()
        {
            var p        = DocumentSample2.GenerateParagraph(1, "test", true);
            var instance = new ParagraphStateCacheFactory(null, null);

            Assert.IsNull(instance.FindAssociatedNumberingInstance(p));
        }
Example #2
0
        public void FindPNumbringStyleID_BaseOnStyleTest()
        {
            var instance = new ParagraphStateCacheFactory(
                DocumentSample1.GenerateStyles(),
                null
                );
            var p = DocumentSample1.GenerateParagraph3();

            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);
        }