public void TestIsValid_ReturnsFalseForNonValidDocument() { OxmlDocument target = new OxmlDocument(this.nonValidOXML); bool expected = false; bool actual = target.IsValid(); Assert.AreEqual(expected, actual); }
public void TestIsValid_ReturnsTrueForValidDocument() { OxmlDocument target = new OxmlDocument(this.oxml); bool expected = true; bool actual = target.IsValid(); Assert.AreEqual(expected , actual); }
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); }