Table of Contents

Class EmptyCollectionConstraint

Namespace
NUnit.Framework.Constraints
Assembly
nunit.framework.dll

EmptyCollectionConstraint tests whether a collection is empty.

public class EmptyCollectionConstraint : CollectionConstraint, IConstraint, IResolveConstraint
Inheritance
EmptyCollectionConstraint
Implements
Inherited Members

Constructors

EmptyCollectionConstraint()

public EmptyCollectionConstraint()

Properties

Description

The Description of what this constraint tests, for use in messages and in the ConstraintResult.

public override string Description { get; }

Property Value

string

Methods

Matches(IEnumerable)

Check that the collection is empty

protected override bool Matches(IEnumerable collection)

Parameters

collection IEnumerable

Returns

bool