Skip to content

Commit 90e554b

Browse files
committed
CSharpCodeMatcher
1 parent ac9e53e commit 90e554b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/WireMock.Net.Matchers.CSharpCode/Matchers/CSharpCodeMatcher.cs

+7-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
using WireMock.Exceptions;
1111
using WireMock.Extensions;
1212
using WireMock.Models;
13+
using WireMock.Util;
1314

1415
namespace WireMock.Matchers;
1516

@@ -95,7 +96,12 @@ public MatchResult IsMatchInternal(object? input)
9596
/// <inheritdoc />
9697
public string GetCSharpCodeArguments()
9798
{
98-
return "// TODO: CSharpCodeMatcher";
99+
return $"new {Name}" +
100+
$"(" +
101+
$"{MatchBehaviour.GetFullyQualifiedEnumValue()}, " +
102+
$"{MatchOperator.GetFullyQualifiedEnumValue()}, " +
103+
$"{MappingConverterUtils.ToCSharpCodeArguments(_patterns)}" +
104+
$")";
99105
}
100106

101107
private bool IsMatch(dynamic input, string pattern)

0 commit comments

Comments
 (0)