EmptyCollectionConstraint
EmptyCollectionConstraint tests whether a collection is empty.
using System.Collections;
namespace NUnit.Framework.Constraints
{
public class EmptyCollectionConstraint : CollectionConstraint
{
public override string Description => "<empty>";
protected override bool Matches(IEnumerable collection)
{
return CollectionConstraint.IsEmpty(collection);
}
}
}