There was an error while loading. Please reload this page.
1 parent 98fa6f5 commit b8dbf98Copy full SHA for b8dbf98
1 file changed
test/Microsoft.OpenApi.Tests/Models/OpenApiDocumentTests.cs
@@ -2145,6 +2145,17 @@ public void TagsSupportsCustomComparer()
2145
Assert.Equal(2, document.Tags.Count);
2146
}
2147
2148
+ [Fact]
2149
+ public void TagsCanBeReInitializedToNull()
2150
+ {
2151
+ var document = new OpenApiDocument();
2152
+ Assert.Null(document.Tags);
2153
+ document.Tags = new HashSet<OpenApiTag>();
2154
+ Assert.NotNull(document.Tags);
2155
+ document.Tags = null;
2156
2157
+ }
2158
+
2159
private sealed class CaseInsensitiveOpenApiTagEqualityComparer : IEqualityComparer<OpenApiTag>
2160
{
2161
public bool Equals(OpenApiTag x, OpenApiTag y)
0 commit comments