Skip to content

Commit ed7f9c1

Browse files
authored
Add unit-test for Param - MatcherModel - LinqMatcher (#961)
1 parent c921835 commit ed7f9c1

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-0
lines changed

test/WireMock.Net.Tests/MappingBuilderTests.GetMappings.verified.txt

+11
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,17 @@
1414
},
1515
Methods: [
1616
GET
17+
],
18+
Params: [
19+
{
20+
Name: test,
21+
Matchers: [
22+
{
23+
Name: LinqMatcher,
24+
Pattern: it.Length < 10
25+
}
26+
]
27+
}
1728
]
1829
},
1930
Response: {

test/WireMock.Net.Tests/MappingBuilderTests.ToJson.verified.txt

+11
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,17 @@
1414
},
1515
Methods: [
1616
GET
17+
],
18+
Params: [
19+
{
20+
Name: test,
21+
Matchers: [
22+
{
23+
Name: LinqMatcher,
24+
Pattern: it.Length < 10
25+
}
26+
]
27+
}
1728
]
1829
},
1930
Response: {

test/WireMock.Net.Tests/MappingBuilderTests.cs

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
using VerifyXunit;
77
using WireMock.Handlers;
88
using WireMock.Logging;
9+
using WireMock.Matchers;
910
using WireMock.Net.Tests.VerifyExtensions;
1011
using WireMock.Owin;
1112
using WireMock.RequestBuilders;
@@ -65,6 +66,7 @@ public MappingBuilderTests()
6566

6667
_sut.Given(Request.Create()
6768
.WithPath("/foo")
69+
.WithParam("test", new LinqMatcher("it.Length < 10"))
6870
.UsingGet()
6971
)
7072
.WithGuid(MappingGuid)

0 commit comments

Comments
 (0)