次の方法で共有


ConstraintExpression.Matches メソッド

定義

オーバーロード

Matches(Constraint)

引数として指定された制約を返します。カスタム カスタム制約を構文に簡単に参加させるために使用されます。

Matches(String)

実際の値が引数として指定された Regex パターンと一致する場合に成功する制約を返します。

Matches<T>(Predicate<T>)

引数として指定された制約を返します。カスタム カスタム制約を構文に簡単に参加させるために使用されます。

Matches(Constraint)

引数として指定された制約を返します。カスタム カスタム制約を構文に簡単に参加させるために使用されます。

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

パラメーター

constraint
Constraint

戻り値

適用対象

Matches(String)

実際の値が引数として指定された Regex パターンと一致する場合に成功する制約を返します。

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

パラメーター

pattern
String

戻り値

適用対象

Matches<T>(Predicate<T>)

引数として指定された制約を返します。カスタム カスタム制約を構文に簡単に参加させるために使用されます。

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

型パラメーター

T

パラメーター

predicate
Predicate<T>

戻り値

適用対象