public void IsNullOrEmpty_NotEmpty_ThrowsException() { var collection = new List <string> { "element" }; var ex = Assert.ThrowsException <AssertFailedException>(() => EnumerableAssert.IsNullOrEmpty(collection)); Assert.AreEqual("EnumerableAssert.IsNullOrEmpty failed. Collection is not null or empty.", ex.Message); }
public void IsNullOrEmpty_Empty() { EnumerableAssert.IsNullOrEmpty(new List <string>()); }
public void IsNullOrEmpty_Null() { EnumerableAssert.IsNullOrEmpty(null); }