Skip to content

Commit

Permalink
CSharpCodeMatcher
Browse files Browse the repository at this point in the history
  • Loading branch information
StefH committed Aug 6, 2024
1 parent ac9e53e commit 90e554b
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
using WireMock.Exceptions;
using WireMock.Extensions;
using WireMock.Models;
using WireMock.Util;

namespace WireMock.Matchers;

Expand Down Expand Up @@ -95,7 +96,12 @@ public MatchResult IsMatchInternal(object? input)
/// <inheritdoc />
public string GetCSharpCodeArguments()
{
return "// TODO: CSharpCodeMatcher";
return $"new {Name}" +
$"(" +
$"{MatchBehaviour.GetFullyQualifiedEnumValue()}, " +
$"{MatchOperator.GetFullyQualifiedEnumValue()}, " +
$"{MappingConverterUtils.ToCSharpCodeArguments(_patterns)}" +
$")";
}

Check warning on line 105 in src/WireMock.Net.Matchers.CSharpCode/Matchers/CSharpCodeMatcher.cs

View check run for this annotation

Codecov / codecov/patch

src/WireMock.Net.Matchers.CSharpCode/Matchers/CSharpCodeMatcher.cs#L98-L105

Added lines #L98 - L105 were not covered by tests

private bool IsMatch(dynamic input, string pattern)
Expand Down

0 comments on commit 90e554b

Please sign in to comment.