Ejemplo n.º 1
0
        public void FindPNumberingLevel_BasedOnStyleTest()
        {
            var instance = new NumberItemFactory
            {
                Styles = DocumentSample1.GenerateStyles()
            };
            var p = DocumentSample1.GenerateParagraph3();

            var result = instance.FindAssociatedNumberingLevel(p);

            Assert.AreEqual(0, result);
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
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);
        }