Add unit-test for Param - MatcherModel - LinqMatcher (#961)

This commit is contained in:
Stef Heyenrath
2023-06-27 22:31:14 +02:00
committed by GitHub
parent c92183558b
commit ed7f9c1143
3 changed files with 24 additions and 0 deletions

View File

@@ -14,6 +14,17 @@
}, },
Methods: [ Methods: [
GET GET
],
Params: [
{
Name: test,
Matchers: [
{
Name: LinqMatcher,
Pattern: it.Length < 10
}
]
}
] ]
}, },
Response: { Response: {

View File

@@ -14,6 +14,17 @@
}, },
Methods: [ Methods: [
GET GET
],
Params: [
{
Name: test,
Matchers: [
{
Name: LinqMatcher,
Pattern: it.Length < 10
}
]
}
] ]
}, },
Response: { Response: {

View File

@@ -6,6 +6,7 @@ using VerifyTests;
using VerifyXunit; using VerifyXunit;
using WireMock.Handlers; using WireMock.Handlers;
using WireMock.Logging; using WireMock.Logging;
using WireMock.Matchers;
using WireMock.Net.Tests.VerifyExtensions; using WireMock.Net.Tests.VerifyExtensions;
using WireMock.Owin; using WireMock.Owin;
using WireMock.RequestBuilders; using WireMock.RequestBuilders;
@@ -65,6 +66,7 @@ public class MappingBuilderTests
_sut.Given(Request.Create() _sut.Given(Request.Create()
.WithPath("/foo") .WithPath("/foo")
.WithParam("test", new LinqMatcher("it.Length < 10"))
.UsingGet() .UsingGet()
) )
.WithGuid(MappingGuid) .WithGuid(MappingGuid)