From 041d16e6586cc3c843066882ea84970ee2e1c308 Mon Sep 17 00:00:00 2001 From: Stef Heyenrath Date: Sun, 11 Jan 2026 12:35:46 +0100 Subject: [PATCH] fix --- .../Matchers/RequestMatchResultTests.cs | 18 +++++++++--------- .../Owin/MappingMatcherTests.cs | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/test/WireMock.Net.Tests/Matchers/RequestMatchResultTests.cs b/test/WireMock.Net.Tests/Matchers/RequestMatchResultTests.cs index b033bdc5..ad2af984 100644 --- a/test/WireMock.Net.Tests/Matchers/RequestMatchResultTests.cs +++ b/test/WireMock.Net.Tests/Matchers/RequestMatchResultTests.cs @@ -15,12 +15,12 @@ public class RequestMatchResultTests { // Arrange var result1 = new RequestMatchResult(); - result1.AddMatchResult(typeof(WildcardMatcher), 1, null); - result1.AddMatchResult(typeof(WildcardMatcher), 0.9, null); + result1.AddScore(typeof(WildcardMatcher), 1, null); + result1.AddScore(typeof(WildcardMatcher), 0.9, null); var result2 = new RequestMatchResult(); - result2.AddMatchResult(typeof(JsonMatcher), 1, null); - result2.AddMatchResult(typeof(JsonMatcher), 1, null); + result2.AddScore(typeof(JsonMatcher), 1, null); + result2.AddScore(typeof(JsonMatcher), 1, null); var results = new[] { result1, result2 }; @@ -36,13 +36,13 @@ public class RequestMatchResultTests { // Arrange var result1 = new RequestMatchResult(); - result1.AddMatchResult(typeof(WildcardMatcher), 1, null); - result1.AddMatchResult(typeof(WildcardMatcher), 1, null); + result1.AddScore(typeof(WildcardMatcher), 1, null); + result1.AddScore(typeof(WildcardMatcher), 1, null); var result2 = new RequestMatchResult(); - result2.AddMatchResult(typeof(JsonMatcher), 1, null); - result2.AddMatchResult(typeof(JsonMatcher), 1, null); - result2.AddMatchResult(typeof(JsonMatcher), 1, null); + result2.AddScore(typeof(JsonMatcher), 1, null); + result2.AddScore(typeof(JsonMatcher), 1, null); + result2.AddScore(typeof(JsonMatcher), 1, null); var results = new[] { result1, result2 }; diff --git a/test/WireMock.Net.Tests/Owin/MappingMatcherTests.cs b/test/WireMock.Net.Tests/Owin/MappingMatcherTests.cs index 5c0111a6..e81bce1e 100644 --- a/test/WireMock.Net.Tests/Owin/MappingMatcherTests.cs +++ b/test/WireMock.Net.Tests/Owin/MappingMatcherTests.cs @@ -243,7 +243,7 @@ public class MappingMatcherTests var requestMatchResult = new RequestMatchResult(); foreach (var score in match.scores) { - requestMatchResult.AddMatchResult(typeof(object), score, null); + requestMatchResult.AddScore(typeof(object), score, null); } mappingMock.SetupGet(m => m.Probability).Returns(match.probability);