Text 1
" + + "Text 1
" + "Text 2
" - + "Text 3 Text 4 Text 5
" + + "Text 3 Text 4 Text 5
" + ""; initialXmlDoc.LoadXml(initialHTML); @@ -82,6 +81,92 @@ } ///Normal text
" + + "return 0;
" + + "Error message
" + + ""; + + expectedHTML = "Normal text
" + + "return 0;
" + + "Error message
" + + ""; + + initialXmlDoc.LoadXml(initialHTML); + expectedXmlDoc.LoadXml(expectedHTML); + + CSSUtil.InlineCSS(ref initialXmlDoc); + + Assert.IsTrue(XmlDocComparator.AreIdentical(initialXmlDoc, expectedXmlDoc)); + } + + ///Some text
" + + ""; + + expectedHTML = "Some text
" + + ""; + + initialXmlDoc.LoadXml(initialHTML); + expectedXmlDoc.LoadXml(expectedHTML); + + CSSUtil.InlineCSS(ref initialXmlDoc); + Assert.IsTrue(XmlDocComparator.AreIdentical(initialXmlDoc, expectedXmlDoc)); + } + + ///Text 1
" @@ -294,7 +379,7 @@ //6 CSS classes from .xoffice0 to .xoffice5 for (int i = 0; i < 6; i++) { - + Assert.IsTrue(cssClasses.ContainsKey(".xoffice" + i)); } @@ -305,7 +390,7 @@ } } - - + + } }