Example #1
0
        public void should_output_markdown_for_document_with_bold_text_part()
        {
            var boldText = new BoldText("I am bold text");
            var document = new Document.Document(boldText);

            string html = document.Accept(new MarkdownVisitor());

            Assert.Equal("_I am bold text_", html);
        }
Example #2
0
        public void should_output_html_for_document_with_bold_text_part()
        {
            var boldText = new BoldText("I am bold text");
            var document = new Document.Document(boldText);

            string html = document.Accept(new HtmlVisitor());

            Assert.Equal("<b>I am bold text</b>", html);
        }