Summary
Asserts that an array, list, collection or enumeration is
not empty. If it is empty a TCLite.AssertionException
is thrown, ending the running test and reporting it as a Failure.
Syntax
public static void IsNotEmpty(IEnumerable collection, string message = null, params object[] args)
Parameters
Name |
Type |
Description |
collection |
IEnumerable |
An array, list or other collection implementing ICollection |
message |
string |
The message to display in case of failure |
args |
object[] |
Array of objects to be used in formatting the message |
Return Value