We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ac9e53e commit 90e554bCopy full SHA for 90e554b
src/WireMock.Net.Matchers.CSharpCode/Matchers/CSharpCodeMatcher.cs
@@ -10,6 +10,7 @@
10
using WireMock.Exceptions;
11
using WireMock.Extensions;
12
using WireMock.Models;
13
+using WireMock.Util;
14
15
namespace WireMock.Matchers;
16
@@ -95,7 +96,12 @@ public MatchResult IsMatchInternal(object? input)
95
96
/// <inheritdoc />
97
public string GetCSharpCodeArguments()
98
{
- return "// TODO: CSharpCodeMatcher";
99
+ return $"new {Name}" +
100
+ $"(" +
101
+ $"{MatchBehaviour.GetFullyQualifiedEnumValue()}, " +
102
+ $"{MatchOperator.GetFullyQualifiedEnumValue()}, " +
103
+ $"{MappingConverterUtils.ToCSharpCodeArguments(_patterns)}" +
104
+ $")";
105
}
106
107
private bool IsMatch(dynamic input, string pattern)
0 commit comments