Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
irvinesunday committed Oct 24, 2023
1 parent f0e20ac commit 657097b
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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))
{
Expand Down

0 comments on commit 657097b

Please sign in to comment.