Skip to content

Commit 512f75c

Browse files
committed
chore: fixes unit test setup unable to find implementation
Signed-off-by: Vincent Biret <[email protected]>
1 parent 96e071f commit 512f75c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

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

4+
using System.Collections.Generic;
45
using System.IO;
56
using System.Linq;
67
using System.Threading.Tasks;
@@ -35,7 +36,7 @@ public async Task ParseOperationWithParameterWithNoLocationShouldSucceed()
3536
{
3637
var openApiDocument = new OpenApiDocument
3738
{
38-
Tags = { new OpenApiTag() { Name = "user" } }
39+
Tags = new HashSet<OpenApiTag> { new() { Name = "user" } }
3940
};
4041
// Act
4142
var operation = await OpenApiModelFactory.LoadAsync<OpenApiOperation>(Path.Combine(SampleFolderPath, "operationWithParameterWithNoLocation.json"), OpenApiSpecVersion.OpenApi3_0, openApiDocument);

0 commit comments

Comments
 (0)