mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-03-20 00:25:06 +01:00
* Create WireMock.Net.MimePart project * . * REFACTOR * ILRepack * -- * ... * x * x * . * fix * public class MimePartMatcher * shared * min * . * <!--<DelaySign>true</DelaySign>--> * Update README.md Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
20 lines
633 B
C#
20 lines
633 B
C#
// Copyright © WireMock.Net
|
|
|
|
namespace WireMock.Matchers;
|
|
|
|
/// <summary>
|
|
/// Provides some extension methods for matchers.
|
|
/// </summary>
|
|
public static class MatcherExtensions
|
|
{
|
|
/// <summary>
|
|
/// Determines if the match result is a perfect match.
|
|
/// </summary>
|
|
/// <param name="matcher">The string matcher.</param>
|
|
/// <param name="input">The input string to match.</param>
|
|
/// <returns><c>true</c>> if the match is perfect; otherwise, <c>false</c>>.</returns>
|
|
public static bool IsPerfectMatch(this IStringMatcher matcher, string? input)
|
|
{
|
|
return matcher.IsMatch(input).IsPerfect();
|
|
}
|
|
} |