Editar

Compartilhar via


Constraint.Matches Method

Definition

Overloads

Matches(Object)

Test whether the constraint is satisfied by a given value

Matches<T>(T)
Matches<T>(ActualValueDelegate<T>)

Matches(Object)

Test whether the constraint is satisfied by a given value

public abstract bool Matches (object actual);
abstract member Matches : obj -> bool

Parameters

actual
Object

The value to be tested

Returns

True for success, false for failure

Applies to

Matches<T>(T)

public virtual bool Matches<T> (ref T actual);
abstract member Matches :  -> bool
override this.Matches :  -> bool

Type Parameters

T

Parameters

actual
T

Returns

Applies to

Matches<T>(ActualValueDelegate<T>)

public virtual bool Matches<T> (NUnit.Framework.Constraints.ActualValueDelegate<T> del);
abstract member Matches : NUnit.Framework.Constraints.ActualValueDelegate<'T> -> bool
override this.Matches : NUnit.Framework.Constraints.ActualValueDelegate<'T> -> bool

Type Parameters

T

Parameters

Returns

Applies to