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

            Assert.IsNull(instance.FindAssociatedNumberingInstance(p));
        }
        public void FindNubmerindId_NumIdPropTest()
        {
            var instance = new NumberItemFactory();
            var p        = DocumentSample1.GenerateParagraph1();

            var result = instance.FindAssociatedNumberingInstance(p);

            Assert.AreEqual(1, result.Value);
        }
        public void FindPNumberingId_StyleIDBaseOnStyleTest()
        {
            var instance = new NumberItemFactory
            {
                Styles = DocumentSample1.GenerateStyles()
            };
            var p = DocumentSample1.GenerateParagraph3();

            var result = instance.FindAssociatedNumberingInstance(p);

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