mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-04-19 07:30:11 +02:00
Add unit-test for Param - MatcherModel - LinqMatcher (#961)
This commit is contained in:
@@ -14,6 +14,17 @@
|
|||||||
},
|
},
|
||||||
Methods: [
|
Methods: [
|
||||||
GET
|
GET
|
||||||
|
],
|
||||||
|
Params: [
|
||||||
|
{
|
||||||
|
Name: test,
|
||||||
|
Matchers: [
|
||||||
|
{
|
||||||
|
Name: LinqMatcher,
|
||||||
|
Pattern: it.Length < 10
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
Response: {
|
Response: {
|
||||||
|
|||||||
@@ -14,6 +14,17 @@
|
|||||||
},
|
},
|
||||||
Methods: [
|
Methods: [
|
||||||
GET
|
GET
|
||||||
|
],
|
||||||
|
Params: [
|
||||||
|
{
|
||||||
|
Name: test,
|
||||||
|
Matchers: [
|
||||||
|
{
|
||||||
|
Name: LinqMatcher,
|
||||||
|
Pattern: it.Length < 10
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
Response: {
|
Response: {
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user