diff --git a/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/MediaEntityGetOperationHandlerTests.cs b/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/MediaEntityGetOperationHandlerTests.cs index bbf81e10..eea8e047 100644 --- a/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/MediaEntityGetOperationHandlerTests.cs +++ b/test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/MediaEntityGetOperationHandlerTests.cs @@ -94,8 +94,12 @@ private void VerifyMediaEntityGetOperation(string annotation, bool enableOperati Assert.Equal(new[] { statusCode, "default" }, getOperation.Responses.Select(r => r.Key)); Assert.Equal(new[] { statusCode, "default" }, getOperation2.Responses.Select(r => r.Key)); Assert.NotNull(getOperation.Responses[statusCode].Content.Values?.Select(x => x.Schema)); - Assert.Equal(new string[] { "binary" }, getOperation.Responses[statusCode].Content.Values.Select(x => x.Schema.Format)); - Assert.Equal(new string[] { "string" }, getOperation.Responses[statusCode].Content.Values.Select(x => x.Schema.Type)); + + foreach (var item in getOperation.Responses[statusCode].Content) + { + Assert.Equal("binary", item.Value.Schema.Format); + Assert.Equal("string", item.Value.Schema.Type); + } if (!string.IsNullOrEmpty(annotation)) {