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); }