mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-06-25 19:36:33 +02:00
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:
@@ -68,9 +68,10 @@ public class SystemTextJsonMatcherTests
|
|||||||
{
|
{
|
||||||
// Assign
|
// Assign
|
||||||
var matcher = new SystemTextJsonMatcher("{}");
|
var matcher = new SystemTextJsonMatcher("{}");
|
||||||
|
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);
|
||||||
|
|||||||
@@ -60,7 +60,8 @@ public class SystemTextJsonPartialWildcardMatcherTests
|
|||||||
var matcher = new SystemTextJsonPartialWildcardMatcher("{}");
|
var matcher = new SystemTextJsonPartialWildcardMatcher("{}");
|
||||||
|
|
||||||
// Act
|
// Act
|
||||||
var result = matcher.IsMatch(new MemoryStream());
|
using var stream = 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