public void FormatXml_WithValidXmlInputStringInOneRowAndCommentOnTheEnd_ShouldReturnFormattedXml()
        {
            string inputString    = "<xml><node id='1'>Test</node></xml><!-- This is a xml comment -->";
            string expectedString = "<xml>\n  <node\n    id=\"1\">Test</node>\n</xml>\n<!-- This is a xml comment -->";

            Assert.AreEqual(expectedString,
                            MsBuildElementHelpCodeBlockUtility.FormatXml(inputString));
        }
        public void FormatXml_WithMultipleRootNodeXmlInputStringInOneRow_ShouldReturnFormattedXml()
        {
            string inputString    = "<!-- This is a xml comment --><xml><node id='1'>Test</node></xml><xml><test/></xml>";
            string expectedString =
                "<!-- This is a xml comment -->\n<xml>\n  <node\n    id=\"1\">Test</node>\n</xml>\n<xml>\n  <test />\n</xml>";

            Assert.AreEqual(expectedString,
                            MsBuildElementHelpCodeBlockUtility.FormatXml(inputString));
        }