LinqMatcher (#431)

This commit is contained in:
Stef Heyenrath
2020-02-25 22:17:15 +01:00
committed by GitHub
parent f49046374a
commit 13ab37dd3e
3 changed files with 10 additions and 8 deletions
@@ -70,12 +70,13 @@ namespace WireMock.Net.Tests.Matchers
// Assign
var input = new JObject
{
{ "Id", new JValue(9) },
{ "IntegerId", new JValue(9) },
{ "LongId", new JValue(long.MaxValue) },
{ "Name", new JValue("Test") }
};
// Act
var matcher = new LinqMatcher("Id > 1 AND Name == \"Test\"");
var matcher = new LinqMatcher("IntegerId > 1 AND LongId > 1 && Name == \"Test\"");
double match = matcher.IsMatch(input);
// Assert