Exemple #1
0
 public void TestCountBookmarks_ReturnsNumberOfBookmarks()
 {
     OxmlDocument target = new OxmlDocument(this.oxmlWithBookmarks);
     int expected = this.numberOfBookmarks;
     int actual = target.CountBookmarks();
     Assert.AreEqual(expected, actual);
 }
Exemple #2
0
 public void TestBookmarkRange_AddsBookmarkToDocument()
 {
     OxmlDocument target = new OxmlDocument(this.oxmlWithBookmarks);
     target.BookmarkRange(new OxmlRange(0, 1, 2), "testbookmark");
     int expected = this.numberOfBookmarks + 1;
     int actual = target.CountBookmarks();
     Assert.AreEqual(expected, actual);
 }