示例#1
0
        public void TestSetGetItalic()
        {
            CT_RPr rpr = ctRun.AddNewRPr();
            rpr.AddNewI().val = (ST_OnOff.True);

            XWPFRun run = new XWPFRun(ctRun, p);
            Assert.AreEqual(true, run.IsItalic());

            run.SetItalic(false);
            Assert.AreEqual(ST_OnOff.False, rpr.i.val);
        }
示例#2
0
        public void TestSetGetItalic()
        {
            CT_RPr rpr = ctRun.AddNewRPr();

            rpr.AddNewI().val = (ST_OnOff.True);

            XWPFRun run = new XWPFRun(ctRun, p);

            Assert.AreEqual(true, run.IsItalic());

            run.SetItalic(false);
            Assert.AreEqual(ST_OnOff.False, rpr.i.val);
        }