Table of Contents

Match Method

Definition

Namespace
Codebelt.Extensions.Xunit
Assemblies
Codebelt.Extensions.Xunit.dll
Source
src/Codebelt.Extensions.Xunit/Test.cs

Match(string, string, Action<WildcardOptions>)

Provides a way, with wildcard support, to determine if actual matches expected.

public static bool Match(string expected, string actual, Action<WildcardOptions> setup = null)

Parameters

expected string

The expected string value.

actual string

The actual string value.

setup Action<WildcardOptions>

The WildcardOptions which may be configured.

Returns

bool

true if actual matches expected, false otherwise.

Remarks

Exceptions

ArgumentOutOfRangeException

expected cannot be matched with actual. Includes the non-matched string(s) in ActualValue.

ArgumentNullException

expected is null -or- actual is null.