ConstraintExpression.Matches メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
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>