We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61e878e commit d87393dCopy full SHA for d87393d
test/Microsoft.OpenApi.Tests/Models/OpenApiOperationTests.cs
@@ -787,5 +787,16 @@ public void SerializeOperationWithNullCollectionAsV2JsonWorks()
787
expected = expected.MakeLineBreaksEnvironmentNeutral();
788
actual.Should().Be(expected);
789
}
790
+
791
+ [Fact]
792
+ public void EnsureOpenApiOperationCopyConstructorCopiesResponsesObject()
793
+ {
794
+ // Arrange and act
795
+ var operation = new OpenApiOperation(_operationWithBody);
796
797
+ // Assert
798
+ Assert.NotNull(operation.Responses);
799
+ Assert.Equal(2, operation.Responses.Count);
800
+ }
801
802
0 commit comments