public void TagMatchValidEndTest() { 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>"; bool hasValidEnd = tagmatch.ValidateEnd(); Assert.IsTrue(hasValidEnd); }