mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-03-20 00:03:48 +01:00
Update MappingConverter to correctly write the Matcher as C# code (#1152)
* Update MappingConverter to correctly write the Matcher as C# code * . * CSharpCodeMatcher * tests * .
This commit is contained in:
@@ -92,11 +92,17 @@ public class CustomPathParamMatcher : IStringMatcher
|
||||
|
||||
public MatchOperator MatchOperator { get; }
|
||||
|
||||
/// <inheritdoc />
|
||||
public string GetCSharpCodeArguments()
|
||||
{
|
||||
return "// TODO: CustomPathParamMatcher";
|
||||
}
|
||||
|
||||
private static string[] GetPathParts(string? path)
|
||||
{
|
||||
if (path is null)
|
||||
{
|
||||
return new string[0];
|
||||
return [];
|
||||
}
|
||||
|
||||
var hashMarkIndex = path.IndexOf('#');
|
||||
|
||||
Reference in New Issue
Block a user