Edit

Share via


ConstraintExpression.Matches Method

Definition

Overloads

Matches(Constraint)

Returns the constraint provided as an argument - used to allow custom custom constraints to easily participate in the syntax.

Matches(String)

Returns a constraint that succeeds if the actual value matches the Regex pattern supplied as an argument.

Matches<T>(Predicate<T>)

Returns the constraint provided as an argument - used to allow custom custom constraints to easily participate in the syntax.

Matches(Constraint)

Returns the constraint provided as an argument - used to allow custom custom constraints to easily participate in the syntax.

public NUnit.Framework.Constraints.Constraint Matches (NUnit.Framework.Constraints.Constraint constraint);
member this.Matches : NUnit.Framework.Constraints.Constraint -> NUnit.Framework.Constraints.Constraint

Parameters

constraint
Constraint

Returns

Applies to

Matches(String)

Returns a constraint that succeeds if the actual value matches the Regex pattern supplied as an argument.

public NUnit.Framework.Constraints.RegexConstraint Matches (string pattern);
member this.Matches : string -> NUnit.Framework.Constraints.RegexConstraint

Parameters

pattern
String

Returns

Applies to

Matches<T>(Predicate<T>)

Returns the constraint provided as an argument - used to allow custom custom constraints to easily participate in the syntax.

public NUnit.Framework.Constraints.Constraint Matches<T> (Predicate<T> predicate);
member this.Matches : Predicate<'T> -> NUnit.Framework.Constraints.Constraint

Type Parameters

T

Parameters

predicate
Predicate<T>

Returns

Applies to