diff --git a/X10D.Tests/src/Text/MarkdownTests.cs b/X10D.Tests/src/Text/MarkdownTests.cs index 8d221454f..1ce8d5ff4 100644 --- a/X10D.Tests/src/Text/MarkdownTests.cs +++ b/X10D.Tests/src/Text/MarkdownTests.cs @@ -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]