Esempio n. 1
0
        public void TestSetGetBold()
        {
            CT_RPr rpr = ctRun.AddNewRPr();
            rpr.AddNewB().val = (ST_OnOff.True);

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

            run.SetBold(false);
            Assert.AreEqual(false, run.IsBold());
            Assert.AreEqual(ST_OnOff.False, rpr.b.val);
        }
Esempio n. 2
0
        public void TestSetGetBold()
        {
            CT_RPr rpr = ctRun.AddNewRPr();

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

            XWPFRun run = new XWPFRun(ctRun, p);

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

            run.SetBold(false);
            Assert.AreEqual(false, run.IsBold());
            Assert.AreEqual(ST_OnOff.False, rpr.b.val);
        }