Skip to content
This repository was archived by the owner on Nov 11, 2025. It is now read-only.

Commit 54f10eb

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

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

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)