diff --git a/src/Microsoft.DotNet.Interactive.Formatting.Tests/PlainTextFormatterTests.Sequences.cs b/src/Microsoft.DotNet.Interactive.Formatting.Tests/PlainTextFormatterTests.Sequences.cs index 27fa5c3ed5..69cb48ec61 100644 --- a/src/Microsoft.DotNet.Interactive.Formatting.Tests/PlainTextFormatterTests.Sequences.cs +++ b/src/Microsoft.DotNet.Interactive.Formatting.Tests/PlainTextFormatterTests.Sequences.cs @@ -279,13 +279,15 @@ public void When_an_IEnumerable_type_has_properties_it_shows_both_properties_and var formatted = instance.ToDisplayString(PlainTextFormatter.MimeType); - formatted.Should().Match(""" + var expected = """ ClassWithPropertiesThatIsAlsoIEnumerable Property: cherry (values): * - apple - banana - """); + """.ReplaceLineEndings(); + + formatted.Should().Match(expected); } [Fact] @@ -298,12 +300,13 @@ public void When_an_IEnumerable_T_type_has_properties_it_shows_both_properties_a var formatted = instance.ToDisplayString(PlainTextFormatter.MimeType); - - formatted.Should().Be(""" + var expected = """ ClassWithPropertiesThatIsAlsoIEnumerable Property: fig (values): [ durian, elderberry ] - """); + """.ReplaceLineEndings(); + + formatted.Should().Be(expected); } } } \ No newline at end of file