Beispiel #1
0
 public void TestIsValid_ReturnsFalseForNonValidDocument()
 {
     OxmlDocument target = new OxmlDocument(this.nonValidOXML);
     bool expected = false;
     bool actual = target.IsValid();
     Assert.AreEqual(expected, actual);
 }
Beispiel #2
0
 public void TestIsValid_ReturnsTrueForValidDocument()
 {
     OxmlDocument target = new OxmlDocument(this.oxml);
     bool expected = true;
     bool actual = target.IsValid();
     Assert.AreEqual(expected , actual);
 }
Beispiel #3
0
 public void TestDocumentIsValidAfterCallingBookmarkRange()
 {
     OxmlDocument target = new OxmlDocument(this.oxmlWithBookmarks);
     target.BookmarkRange(new OxmlRange(0,1,2), "testbookmark");
     bool expected = true;
     bool actual = target.IsValid();
     Assert.AreEqual(expected, actual);
 }