コード例 #1
0
        public void Convert_Header_Content_To_MarkdownParagraph()
        {
            var testHeader = "Test Header";
            var article    = ArticleMockRepository.GetCreateCommandLineToolArticleFragment(testHeader);

            var fixer  = new MarkdownPreprocessor();
            var output = fixer.Fix(article);
        }
コード例 #2
0
        public void Convert_Paragraph_To_H1()
        {
            const string input = "<p># Title </p>\r\n";

            var fixer  = new MarkdownPreprocessor();
            var output = fixer.Fix(input);

            const string expected = "<h1>Title </h1>\r\n";

            output.Should().Be(expected);
        }