public void IsNotEmpty() { List <int> list = new List <int>(); list.Add(42); EmptyException ex = Assert.Throws <EmptyException>(() => Assert.Empty(list)); Assert.Equal("Assert.Empty() failure", ex.Message); }
public void IsNotEmpty() { EmptyException ex = Assert.Throws <EmptyException>(() => Assert.Empty("Foo")); Assert.Equal("Assert.Empty() failure", ex.Message); }
public void IsEmpty() { Assert.Empty(""); }
public void NullIsNotEmpty() { Assert.Throws <ArgumentNullException>(() => Assert.Empty(null)); }
public void IsEmpty() { List <int> list = new List <int>(); Assert.Empty(list); }