diff --git a/test/WireMock.Net.Tests/Matchers/SystemTextJsonPartialMatcherTests.cs b/test/WireMock.Net.Tests/Matchers/SystemTextJsonPartialMatcherTests.cs index 809ec318..81b1ec7d 100644 --- a/test/WireMock.Net.Tests/Matchers/SystemTextJsonPartialMatcherTests.cs +++ b/test/WireMock.Net.Tests/Matchers/SystemTextJsonPartialMatcherTests.cs @@ -58,9 +58,10 @@ public class SystemTextJsonPartialMatcherTests { // Assign var matcher = new SystemTextJsonPartialMatcher("{}"); + using var stream = new MemoryStream(); // Act - var result = matcher.IsMatch(new MemoryStream()); + var result = matcher.IsMatch(stream); // Assert result.Score.Should().Be(MatchScores.Mismatch);