Exemplo n.º 1
0
        public void ClearFormatting()
        {
            var range = XElement.Parse(xml);

            var cdata = range.DescendantNodes()
                        .Where(e => e.NodeType == XmlNodeType.CDATA)
                        .First() as XCData;

            var phrase = new Phrase(cdata);

            phrase.ClearFormatting();
            Assert.AreEqual("One two three four", phrase.CData.Value);
        }