public void ExtractBodyTest() { tagmatch = new TagMatch(); tagmatch.tag = "FlowDocument"; tagmatch.inputStr = "<FlowDocument><Paragraph><Bold>Some bold text in the paragraph.</Bold>Some text that is not bold. </ Paragraph > </FlowDocument>"; string body = tagmatch.ExtractBody(); Assert.AreEqual("<Paragraph><Bold>Some bold text in the paragraph.</Bold>Some text that is not bold. </ Paragraph > ", body); }