示例#1
0
        public void ExtractAllTagObjectsTest()
        {
            tagmatch          = new TagMatch();
            tagmatch.tag      = "Paragraph";
            tagmatch.inputStr = "<FlowDocument><Paragraph><Bold>Some bold text in the paragraph.</Bold>Some text that is not bold. </ Paragraph >  </FlowDocument>";
            var paragraps = tagmatch.ExtractAllTagObjects(tagmatch.inputStr);

            Assert.IsTrue(paragraps.Count() == 1);
        }