Skip to content

Commit 54f10eb

Browse files
authored
test: reverts yaml parsing to json
1 parent 865295a commit 54f10eb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/Microsoft.OpenApi.Tests/Models/OpenApiEncodingTests.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,9 @@ public async Task SerializeEncodingWithNestedEncodingAsV32YamlWorks()
213213
var actual = await encoding.SerializeAsYamlAsync(OpenApiSpecVersion.OpenApi3_2);
214214

215215
// Assert
216-
Assert.True(JsonNode.DeepEquals(JsonNode.Parse(actual), JsonNode.Parse(expected)));
216+
actual = actual.MakeLineBreaksEnvironmentNeutral();
217+
expected = expected.MakeLineBreaksEnvironmentNeutral();
218+
Assert.Equal(actual, expected);
217219
}
218220

219221
[Fact]

0 commit comments

Comments
 (0)