Apply suggestions from code review

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
This commit is contained in:
Stef Heyenrath
2026-05-03 11:33:07 +02:00
committed by GitHub
parent 32d8ecd399
commit 9bfae15f32
2 changed files with 4 additions and 2 deletions

View File

@@ -68,9 +68,10 @@ public class SystemTextJsonMatcherTests
{
// Assign
var matcher = new SystemTextJsonMatcher("{}");
using var stream = new MemoryStream();
// Act
var result = matcher.IsMatch(new MemoryStream());
var result = matcher.IsMatch(stream);
// Assert
result.Score.Should().Be(MatchScores.Mismatch);

View File

@@ -60,7 +60,8 @@ public class SystemTextJsonPartialWildcardMatcherTests
var matcher = new SystemTextJsonPartialWildcardMatcher("{}");
// Act
var result = matcher.IsMatch(new MemoryStream());
using var stream = new MemoryStream();
var result = matcher.IsMatch(stream);
// Assert
result.Score.Should().Be(MatchScores.Mismatch);