예제 #1
0
 public void TestHideHeaderandFooter()
 {
     //this has to be tested in the body...
     Header2004 hd = new Header2004();
     hd.SetHideHeaderAndFooterFirstPage(true);
     Assert.True(hd.GetHideHeaderAndFooterFirstPage());
 }
예제 #2
0
 public void TestAddEle()
 {
     Header2004 hd = new Header2004();
     hd.AddEle(Paragraph.With("p1"));
     Assert.AreEqual(2, TestUtils.RegexCount(hd.Content, "<*w:hdr"));
     Assert.AreEqual(1, TestUtils.RegexCount(hd.Content, "<w:t>p1</w:t>"));
 }
예제 #3
0
 public void TestAddEleString()
 {
     Header2004 hd = new Header2004();
     hd.AddEle("<w:t>p1</w:t>");
     Assert.AreEqual(2, TestUtils.RegexCount(hd.Content, "<*w:hdr"));
     Assert.AreEqual(1, TestUtils.RegexCount(hd.Content, "<w:t>p1</w:t>"));
 }
예제 #4
0
 public void SanityTest()
 {
     Header2004 hd = new Header2004();
     Assert.AreEqual("", hd.Content);
 }