// This file was auto-generated based on version 1.2.0 of the canonical data. using Xunit; public class MarkdownTest { [Fact] public void Parses_normal_text_as_a_paragraph() { var markdown = "This will be a paragraph"; var expected = "

This will be a paragraph

"; Assert.Equal(expected, Markdown.Parse(markdown)); } [Fact] public void Parsing_italics() { var markdown = "_This will be italic_"; var expected = "

This will be italic

"; Assert.Equal(expected, Markdown.Parse(markdown)); } [Fact] public void Parsing_bold_text() { var markdown = "__This will be bold__"; var expected = "

This will be bold

"; Assert.Equal(expected, Markdown.Parse(markdown)); } [Fact] public void Mixed_normal_italics_and_bold_text() { var markdown = "This will _be_ __mixed__"; var expected = "

This will be mixed

"; Assert.Equal(expected, Markdown.Parse(markdown)); } [Fact] public void With_h1_header_level() { var markdown = "# This will be an h1"; var expected = "

This will be an h1

"; Assert.Equal(expected, Markdown.Parse(markdown)); } [Fact] public void With_h2_header_level() { var markdown = "## This will be an h2"; var expected = "

This will be an h2

"; Assert.Equal(expected, Markdown.Parse(markdown)); } [Fact] public void With_h6_header_level() { var markdown = "###### This will be an h6"; var expected = "
This will be an h6
"; Assert.Equal(expected, Markdown.Parse(markdown)); } [Fact] public void Unordered_lists() { var markdown = "* Item 1\n" + "* Item 2"; var expected = ""; Assert.Equal(expected, Markdown.Parse(markdown)); } [Fact] public void With_a_little_bit_of_everything() { var markdown = "# Header!\n" + "* __Bold Item__\n" + "* _Italic Item_"; var expected = "

Header!

"; Assert.Equal(expected, Markdown.Parse(markdown)); } }