ClassicAssert.IsEmpty
ClassicAssert.IsEmpty may be used to test either a string or a collection or IEnumerable. When used with a string, it succeeds if the string is the empty string. When used with a collection, it succeeds if the collection is empty.
ClassicAssert.IsEmpty(string aString);
ClassicAssert.IsEmpty(string aString, string message, params object[] args);
ClassicAssert.IsEmpty(IEnumerable collection);
ClassicAssert.IsEmpty(IEnumerable collection, string message,
params object[] args);
Note
When used with an IEnumerable that is not also an ICollection, ClassicAssert.IsEmpty attempts to enumerate the contents. It should not be used in cases where this results in an unwanted side effect.