public void Decode_WithStartAndEndIdentifierWithPowerShellCommentConvention_ShouldReplaceWithProperXmlComment()
        {
            string inputString    = "<# This is an encoded xml comment #>";
            string expectedString = "<!-- This is an encoded xml comment -->";

            Assert.AreEqual(expectedString, MsBuildElementHelpCodeBlockUtility.Decode(inputString));
        }
        public void Decode_WithStartAndEndIdentifierRepresentedByHtmlEncoded_ShouldDecode()
        {
            string inputString    = "&lt;!-- This is an encoded xml comment --&gt;";
            string expectedString = "<!-- This is an encoded xml comment -->";

            Assert.AreEqual(expectedString, MsBuildElementHelpCodeBlockUtility.Decode(inputString));
        }
        public void Decode_WithStartAndEndIdentifierWithTildeAsMinus_ShouldReplaceTildeWithMinus()
        {
            string inputString    = "<!~~ This is an encoded xml comment ~~>";
            string expectedString = "<!-- This is an encoded xml comment -->";

            Assert.AreEqual(expectedString, MsBuildElementHelpCodeBlockUtility.Decode(inputString));
        }
 public void Decode_WithEmptyInputValue_ShouldReturnEmptyValue()
 {
     Assert.AreEqual(string.Empty, MsBuildElementHelpCodeBlockUtility.Decode(string.Empty));
 }