Skip to content

Commit

Permalink
style: cap lines to 130 in length
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverbooth committed Aug 27, 2023
1 parent 41ba8b5 commit c6dbc4c
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions X10D.Tests/src/Text/MarkdownTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,19 @@ public void MDCodeBlock_ShouldThrowArgumentNullException_GivenNull()
[Test]
public void MDCodeBlock_ShouldReturnCodeBlockText_GivenText()
{
Assert.That("Hello, world!".MDCodeBlock(), Is.EqualTo($"```{Environment.NewLine}Hello, world!{Environment.NewLine}```"));
var expected = $"```{Environment.NewLine}Hello, world!{Environment.NewLine}```";
string actual = "Hello, world!".MDCodeBlock();

Assert.That(actual, Is.EqualTo(expected));
}

[Test]
public void MDCodeBlock_ShouldReturnCodeBlockText_GivenTextAndLanguage()
{
Assert.That("Hello, world!".MDCodeBlock("csharp"), Is.EqualTo($"```csharp{Environment.NewLine}Hello, world!{Environment.NewLine}```"));
var expected = $"```csharp{Environment.NewLine}Hello, world!{Environment.NewLine}```";
string actual = "Hello, world!".MDCodeBlock("csharp");

Assert.That(actual, Is.EqualTo(expected));
}

[Test]
Expand Down

0 comments on commit c6dbc4c

Please sign in to comment.