public void Print_LanguageXmlWithOneLineCodeAndOneLineComment_ShouldPrintCorrectAndExpectedMarkdownFormat()
        {
            MarkdownCodeBlock codeBlock = new MarkdownCodeBlock();

            codeBlock.SetLanguage("xml");
            codeBlock.AppendContentLine("<xml>test</xml>");
            codeBlock.AppendContentLine("<!-- a simple test string -->");

            Assert.AreEqual("```xml\n<xml>test</xml>\n<!-- a simple test string -->\n```", codeBlock.Print());
        }
        public void AppendContentLine_WithContentLinesSeparatedByEmptyLine_ShouldAddLines()
        {
            MarkdownCodeBlock codeBlock = new MarkdownCodeBlock();

            codeBlock.AppendContentLine("<xml>test</xml>");
            codeBlock.AppendContentLine();
            codeBlock.AppendContentLine("<xml>test</xml>");

            Assert.AreEqual("<xml>test</xml>", codeBlock.Content[0]);
            Assert.AreEqual(string.Empty, codeBlock.Content[1]);
            Assert.AreEqual("<xml>test</xml>", codeBlock.Content[2]);
        }
        public void AppendContentLine_WithContentLine_ShouldAddLine()
        {
            MarkdownCodeBlock codeBlock = new MarkdownCodeBlock();

            codeBlock.AppendContentLine("<xml>test</xml>");

            Assert.AreEqual("<xml>test</xml>", codeBlock.Content[0]);
        }