public void TestSetGetText() { ctRun.AddNewT().Value = ("TEST STRING"); ctRun.AddNewT().Value = ("TEST2 STRING"); ctRun.AddNewT().Value = ("TEST3 STRING"); Assert.AreEqual(3, ctRun.SizeOfTArray()); XWPFRun run = new XWPFRun(ctRun, p); Assert.AreEqual("TEST2 STRING", run.GetText(1)); run.SetText("NEW STRING", 0); Assert.AreEqual("NEW STRING", run.GetText(0)); //Run.Text=("xxx",14); //Assert.Fail("Position wrong"); }