public void AppendReplacementOpenCloseTagAddsTagsForReplacementsToTheEndOfTheDocument() { using (var document = new DocxDocument(Resources.DocumentWithoutParagraph)) { var initialCount = GetParagraphs(document).Count; document.AppendTag("Test"); var paragraphs = GetParagraphs(document); Assert.AreEqual("{/Test}", paragraphs.Last().InnerText); Assert.AreEqual("{Test}", paragraphs.Skip(paragraphs.Count - 2).First().InnerText); Assert.AreEqual(initialCount + 2, paragraphs.Count); } }