This commit is contained in:
Stef Heyenrath
2026-01-11 12:35:46 +01:00
parent 95d3978c7c
commit 041d16e658
2 changed files with 10 additions and 10 deletions

View File

@@ -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 };

View File

@@ -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);