public void TestSetGetFontSize() { CT_RPr rpr = ctRun.AddNewRPr(); rpr.AddNewSz().val = 14; XWPFRun run = new XWPFRun(ctRun, p); Assert.AreEqual(7, run.GetFontSize()); run.SetFontSize(24); Assert.AreEqual(48, (int)rpr.sz.val); }
public void TestSetGetFontSize() { CT_RPr rpr = ctRun.AddNewRPr(); rpr.AddNewSz().val = 14; XWPFRun run = new XWPFRun(ctRun, p); Assert.AreEqual(7, run.FontSize); run.SetFontSize(24); Assert.AreEqual(48, (int)rpr.sz.val); }