C# Class UnityEngine.NUnit.Framework.Constraints.CollectionConstraint

CollectionConstraint is the abstract base class for constraints that operate on collections.
Inheritance: Constraint
Mostrar archivo Open project: Unity-Technologies/nunitv2

Public Methods

Method Description
Matches ( object actual ) : bool

Test whether the constraint is satisfied by a given value

Protected Methods

Method Description
CollectionConstraint ( ) : System

Construct an empty CollectionConstraint

CollectionConstraint ( object arg ) : System

Construct a CollectionConstraint

IsEmpty ( IEnumerable enumerable ) : bool

Determines whether the specified enumerable is empty.

doMatch ( IEnumerable collection ) : bool

Protected method to be implemented by derived classes

Method Details

CollectionConstraint() protected method

Construct an empty CollectionConstraint
protected CollectionConstraint ( ) : System
return System

CollectionConstraint() protected method

Construct a CollectionConstraint
protected CollectionConstraint ( object arg ) : System
arg object
return System

IsEmpty() protected static method

Determines whether the specified enumerable is empty.
protected static IsEmpty ( IEnumerable enumerable ) : bool
enumerable IEnumerable The enumerable.
return bool

Matches() public method

Test whether the constraint is satisfied by a given value
public Matches ( object actual ) : bool
actual object The value to be tested
return bool

doMatch() protected abstract method

Protected method to be implemented by derived classes
protected abstract doMatch ( IEnumerable collection ) : bool
collection IEnumerable
return bool