The EmptyCollectionConstraint tests if a Collection is empty. An ArgumentException
is thrown if the collection is null.
Note: Is.Empty
actually creates an EmptyConstraint
. Subsequently applying it to an IEnumerable
or ICollection
causes an EmptyCollectionConstraint
to be created.