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

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