From a86b8fbeb2214e3ef941e158fb5d363651734813 Mon Sep 17 00:00:00 2001 From: Stef Heyenrath Date: Sun, 3 May 2026 11:52:47 +0200 Subject: [PATCH] Potential fix for pull request finding 'Missing Dispose call on local IDisposable' Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com> --- .../Matchers/SystemTextJsonPartialMatcherTests.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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);