Skip to content

Commit eda0a2d

Browse files
committed
Removing Trim() from line comparisons to make them more hardcore.
1 parent f1e5331 commit eda0a2d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Http/Http.Extensions/test/RequestDelegateGenerator/RequestDelegateGeneratorTestBase.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -405,8 +405,8 @@ private bool CompareLines(string[] expectedLines, SourceText sourceText, out str
405405
var index = 0;
406406
foreach (var textLine in sourceText.Lines)
407407
{
408-
var expectedLine = expectedLines[index].Trim().ReplaceLineEndings();
409-
var actualLine = textLine.ToString().Trim().ReplaceLineEndings();
408+
var expectedLine = expectedLines[index].ReplaceLineEndings();
409+
var actualLine = textLine.ToString().ReplaceLineEndings();
410410
if (!expectedLine.Equals(actualLine, StringComparison.Ordinal))
411411
{
412412
message = $"""

0 commit comments

Comments
 (0)