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

            Assert.IsNull(instance.FindAssociatedNumberingInstance(p));
        }
コード例 #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);
        }
コード例 #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);
        }