Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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<String>
Property: fig
(values): [ durian, elderberry ]
""");
""".ReplaceLineEndings();

formatted.Should().Be(expected);
}
}
}