1
0
mirror of https://github.com/oliverbooth/X10D synced 2024-11-09 23:25:43 +00:00

style: cap lines to 130 in length

This commit is contained in:
Oliver Booth 2023-08-27 03:45:12 +01:00
parent 41ba8b5aad
commit c6dbc4cebe
Signed by: oliverbooth
GPG Key ID: B89D139977693FED

View File

@ -39,13 +39,19 @@ internal class MarkdownTests
[Test] [Test]
public void MDCodeBlock_ShouldReturnCodeBlockText_GivenText() 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] [Test]
public void MDCodeBlock_ShouldReturnCodeBlockText_GivenTextAndLanguage() 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] [Test]