mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-07-02 02:51:50 +02:00
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>
This commit is contained in:
@@ -58,9 +58,10 @@ public class SystemTextJsonPartialMatcherTests
|
|||||||
{
|
{
|
||||||
// Assign
|
// Assign
|
||||||
var matcher = new SystemTextJsonPartialMatcher("{}");
|
var matcher = new SystemTextJsonPartialMatcher("{}");
|
||||||
|
using var stream = new MemoryStream();
|
||||||
|
|
||||||
// Act
|
// Act
|
||||||
var result = matcher.IsMatch(new MemoryStream());
|
var result = matcher.IsMatch(stream);
|
||||||
|
|
||||||
// Assert
|
// Assert
|
||||||
result.Score.Should().Be(MatchScores.Mismatch);
|
result.Score.Should().Be(MatchScores.Mismatch);
|
||||||
|
|||||||
Reference in New Issue
Block a user