mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-18 08:07:09 +01:00
fix
This commit is contained in:
@@ -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 };
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user