Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Added Skip to the Fact attribute #2318

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 16 additions & 16 deletions exercises/practice/markdown/MarkdownTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,87 +10,87 @@ public void Parses_normal_text_as_a_paragraph()
Assert.Equal(expected, Markdown.Parse(markdown));
}

[Fact]
[Fact(Skip = "Remove this Skip property to run this test")]
public void Parsing_italics()
{
var markdown = "_This will be italic_";
var expected = "<p><em>This will be italic</em></p>";
Assert.Equal(expected, Markdown.Parse(markdown));
}

[Fact]
[Fact(Skip = "Remove this Skip property to run this test")]
public void Parsing_bold_text()
{
var markdown = "__This will be bold__";
var expected = "<p><strong>This will be bold</strong></p>";
Assert.Equal(expected, Markdown.Parse(markdown));
}

[Fact]
[Fact(Skip = "Remove this Skip property to run this test")]
public void Mixed_normal_italics_and_bold_text()
{
var markdown = "This will _be_ __mixed__";
var expected = "<p>This will <em>be</em> <strong>mixed</strong></p>";
Assert.Equal(expected, Markdown.Parse(markdown));
}

[Fact]
[Fact(Skip = "Remove this Skip property to run this test")]
public void With_h1_header_level()
{
var markdown = "# This will be an h1";
var expected = "<h1>This will be an h1</h1>";
Assert.Equal(expected, Markdown.Parse(markdown));
}

[Fact]
[Fact(Skip = "Remove this Skip property to run this test")]
public void With_h2_header_level()
{
var markdown = "## This will be an h2";
var expected = "<h2>This will be an h2</h2>";
Assert.Equal(expected, Markdown.Parse(markdown));
}

[Fact]
[Fact(Skip = "Remove this Skip property to run this test")]
public void With_h3_header_level()
{
var markdown = "### This will be an h3";
var expected = "<h3>This will be an h3</h3>";
Assert.Equal(expected, Markdown.Parse(markdown));
}

[Fact]
[Fact(Skip = "Remove this Skip property to run this test")]
public void With_h4_header_level()
{
var markdown = "#### This will be an h4";
var expected = "<h4>This will be an h4</h4>";
Assert.Equal(expected, Markdown.Parse(markdown));
}

[Fact]
[Fact(Skip = "Remove this Skip property to run this test")]
public void With_h5_header_level()
{
var markdown = "##### This will be an h5";
var expected = "<h5>This will be an h5</h5>";
Assert.Equal(expected, Markdown.Parse(markdown));
}

[Fact]
[Fact(Skip = "Remove this Skip property to run this test")]
public void With_h6_header_level()
{
var markdown = "###### This will be an h6";
var expected = "<h6>This will be an h6</h6>";
Assert.Equal(expected, Markdown.Parse(markdown));
}

[Fact]
[Fact(Skip = "Remove this Skip property to run this test")]
public void H7_header_level_is_a_paragraph()
{
var markdown = "####### This will not be an h7";
var expected = "<p>####### This will not be an h7</p>";
Assert.Equal(expected, Markdown.Parse(markdown));
}

[Fact]
[Fact(Skip = "Remove this Skip property to run this test")]
public void Unordered_lists()
{
var markdown =
Expand All @@ -100,7 +100,7 @@ public void Unordered_lists()
Assert.Equal(expected, Markdown.Parse(markdown));
}

[Fact]
[Fact(Skip = "Remove this Skip property to run this test")]
public void With_a_little_bit_of_everything()
{
var markdown =
Expand All @@ -111,15 +111,15 @@ public void With_a_little_bit_of_everything()
Assert.Equal(expected, Markdown.Parse(markdown));
}

[Fact]
[Fact(Skip = "Remove this Skip property to run this test")]
public void With_markdown_symbols_in_the_header_text_that_should_not_be_interpreted()
{
var markdown = "# This is a header with # and * in the text";
var expected = "<h1>This is a header with # and * in the text</h1>";
Assert.Equal(expected, Markdown.Parse(markdown));
}

[Fact]
[Fact(Skip = "Remove this Skip property to run this test")]
public void With_markdown_symbols_in_the_list_item_text_that_should_not_be_interpreted()
{
var markdown =
Expand All @@ -129,15 +129,15 @@ public void With_markdown_symbols_in_the_list_item_text_that_should_not_be_inter
Assert.Equal(expected, Markdown.Parse(markdown));
}

[Fact]
[Fact(Skip = "Remove this Skip property to run this test")]
public void With_markdown_symbols_in_the_paragraph_text_that_should_not_be_interpreted()
{
var markdown = "This is a paragraph with # and * in the text";
var expected = "<p>This is a paragraph with # and * in the text</p>";
Assert.Equal(expected, Markdown.Parse(markdown));
}

[Fact]
[Fact(Skip = "Remove this Skip property to run this test")]
public void Unordered_lists_close_properly_with_preceding_and_following_lines()
{
var markdown =
Expand Down