mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-03-26 19:31:48 +01:00
Implement PatternAsFile for StringMatcher (#651)
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
using System;
|
||||
using System;
|
||||
using AnyOfTypes;
|
||||
using FluentAssertions;
|
||||
using WireMock.Matchers;
|
||||
using WireMock.Models;
|
||||
using WireMock.Plugin;
|
||||
using Xunit;
|
||||
|
||||
@@ -16,7 +18,8 @@ namespace WireMock.Net.Tests.Plugin
|
||||
public void Load_Valid()
|
||||
{
|
||||
// Act
|
||||
var result = PluginLoader.Load<ICSharpCodeMatcher>(MatchBehaviour.AcceptOnMatch, "x");
|
||||
AnyOf<string, StringPattern> pattern = "x";
|
||||
var result = PluginLoader.Load<ICSharpCodeMatcher>(MatchBehaviour.AcceptOnMatch, pattern);
|
||||
|
||||
// Assert
|
||||
result.Should().NotBeNull();
|
||||
|
||||
Reference in New Issue
Block a user