Class EmptyCollectionConstraint
EmptyCollectionConstraint tests whether a collection is empty.
Inherited Members
Namespace: NUnit.Framework.Constraints
Assembly: nunit.framework.dll
Syntax
public class EmptyCollectionConstraint : CollectionConstraint, IConstraint, IResolveConstraint
Constructors
View SourceEmptyCollectionConstraint()
Declaration
public EmptyCollectionConstraint()
Properties
View SourceDescription
The Description of what this constraint tests, for use in messages and in the ConstraintResult.
Declaration
public override string Description { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Methods
View SourceMatches(IEnumerable)
Check that the collection is empty
Declaration
protected override bool Matches(IEnumerable collection)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable | collection |
Returns
Type | Description |
---|---|
bool |