This commit is contained in:
Stef Heyenrath
2026-01-11 11:53:55 +01:00
parent 960399127e
commit 95d3978c7c
39 changed files with 216 additions and 178 deletions

View File

@@ -15,12 +15,12 @@ public class RequestMatchResultTests
{
// Arrange
var result1 = new RequestMatchResult();
result1.AddScore(typeof(WildcardMatcher), 1, null);
result1.AddScore(typeof(WildcardMatcher), 0.9, null);
result1.AddMatchResult(typeof(WildcardMatcher), 1, null);
result1.AddMatchResult(typeof(WildcardMatcher), 0.9, null);
var result2 = new RequestMatchResult();
result2.AddScore(typeof(JsonMatcher), 1, null);
result2.AddScore(typeof(JsonMatcher), 1, null);
result2.AddMatchResult(typeof(JsonMatcher), 1, null);
result2.AddMatchResult(typeof(JsonMatcher), 1, null);
var results = new[] { result1, result2 };
@@ -36,13 +36,13 @@ public class RequestMatchResultTests
{
// Arrange
var result1 = new RequestMatchResult();
result1.AddScore(typeof(WildcardMatcher), 1, null);
result1.AddScore(typeof(WildcardMatcher), 1, null);
result1.AddMatchResult(typeof(WildcardMatcher), 1, null);
result1.AddMatchResult(typeof(WildcardMatcher), 1, null);
var result2 = new RequestMatchResult();
result2.AddScore(typeof(JsonMatcher), 1, null);
result2.AddScore(typeof(JsonMatcher), 1, null);
result2.AddScore(typeof(JsonMatcher), 1, null);
result2.AddMatchResult(typeof(JsonMatcher), 1, null);
result2.AddMatchResult(typeof(JsonMatcher), 1, null);
result2.AddMatchResult(typeof(JsonMatcher), 1, null);
var results = new[] { result1, result2 };