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:
parent
41ba8b5aad
commit
c6dbc4cebe
@ -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]
|
||||||
|
Loading…
Reference in New Issue
Block a user