Skip to content

Commit 6a7993e

Browse files
committed
Clean up test
1 parent 3636351 commit 6a7993e

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

test/Microsoft.OpenApi.Readers.Tests/V2Tests/OpenApiOperationTests.cs

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) Microsoft Corporation. All rights reserved.
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT license.
33

44
using System.Collections.Generic;
@@ -182,8 +182,8 @@ public class OpenApiOperationTests
182182
}
183183
}
184184
},
185-
Extensions = {
186-
[OpenApiConstants.BodyName] = new OpenApiString("petObject")
185+
Extensions = {
186+
[OpenApiConstants.BodyName] = new OpenApiString("petObject")
187187
}
188188
},
189189
Responses = new OpenApiResponses
@@ -381,10 +381,8 @@ public void ParseOperationWithEmptyProducesArraySetsResponseSchemaIfExists()
381381
{
382382
// Arrange
383383
MapNode node;
384-
using (var stream = Resources.GetStream(Path.Combine(SampleFolderPath, "operationWithEmptyProducesArrayInResponse.json")))
385-
{
386-
node = TestHelper.CreateYamlMapNode(stream);
387-
}
384+
using var stream = Resources.GetStream(Path.Combine(SampleFolderPath, "operationWithEmptyProducesArrayInResponse.json"));
385+
node = TestHelper.CreateYamlMapNode(stream);
388386

389387
// Act
390388
var operation = OpenApiV2Deserializer.LoadOperation(node);

0 commit comments

Comments
 (0)