remove nfluent

This commit is contained in:
Stef Heyenrath
2026-02-26 22:02:54 +01:00
parent c4c8ad3fa9
commit 62d0b0db5b
142 changed files with 899 additions and 1020 deletions
@@ -1,8 +1,7 @@
// Copyright © WireMock.Net
using AwesomeAssertions;
using Newtonsoft.Json.Linq;
using NFluent;
using WireMock.Matchers;
namespace WireMock.Net.Tests.Matchers;
@@ -19,7 +18,7 @@ public class JmesPathMatcherTests
string name = matcher.Name;
// Assert
Check.That(name).Equals("JmesPathMatcher");
name.Should().Be("JmesPathMatcher");
}
[Fact]
@@ -32,7 +31,7 @@ public class JmesPathMatcherTests
var patterns = matcher.GetPatterns();
// Assert
Check.That(patterns).ContainsExactly("X");
patterns.Should().ContainSingle("X");
}
[Fact]
@@ -46,7 +45,7 @@ public class JmesPathMatcherTests
double match = matcher.IsMatch(bytes).Score;
// Assert
Check.That(match).IsEqualTo(0);
match.Should().Be(0);
}
[Fact]
@@ -59,7 +58,7 @@ public class JmesPathMatcherTests
double match = matcher.IsMatch(null).Score;
// Assert
Check.That(match).IsEqualTo(0);
match.Should().Be(0);
}
[Fact]
@@ -72,7 +71,7 @@ public class JmesPathMatcherTests
double match = matcher.IsMatch(string.Empty).Score;
// Assert
Check.That(match).IsEqualTo(0);
match.Should().Be(0);
}
[Fact]
@@ -86,7 +85,7 @@ public class JmesPathMatcherTests
double match = matcher.IsMatch(o).Score;
// Assert
Check.That(match).IsEqualTo(0);
match.Should().Be(0);
}
[Fact]
@@ -99,7 +98,7 @@ public class JmesPathMatcherTests
double match = matcher.IsMatch("").Score;
// Assert
Check.That(match).IsEqualTo(0);
match.Should().Be(0);
}
[Fact]
@@ -112,7 +111,7 @@ public class JmesPathMatcherTests
double match = matcher.IsMatch("x").Score;
// Assert
Check.That(match).IsEqualTo(0);
match.Should().Be(0);
}
[Fact]
@@ -125,7 +124,7 @@ public class JmesPathMatcherTests
double match = matcher.IsMatch(new { things = new { name = "RequiredThing" } }).Score;
// Assert
Check.That(match).IsEqualTo(1);
match.Should().Be(1);
}
[Fact]
@@ -148,7 +147,7 @@ public class JmesPathMatcherTests
double match = matcher.IsMatch(jobject).Score;
// Assert
Check.That(match).IsEqualTo(1);
match.Should().Be(1);
}
[Fact]
@@ -161,7 +160,7 @@ public class JmesPathMatcherTests
double match = matcher.IsMatch(JObject.Parse("{ \"things\": { \"x\": \"RequiredThing\" } }")).Score;
// Assert
Check.That(match).IsEqualTo(1);
match.Should().Be(1);
}
[Fact]
@@ -174,7 +173,7 @@ public class JmesPathMatcherTests
double match = matcher.IsMatch(JObject.Parse("{ \"things\": { \"x\": \"RequiredThing\" } }")).Score;
// Assert
Check.That(match).IsEqualTo(0.0);
match.Should().Be(0.0);
}
[Fact]
@@ -202,4 +201,4 @@ public class JmesPathMatcherTests
// Assert
score.Should().Be(1);
}
}
}