示例#1
0
            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);
            }
示例#2
0
            public void IsNotEmpty()
            {
                EmptyException ex = Assert.Throws <EmptyException>(() => Assert.Empty("Foo"));

                Assert.Equal("Assert.Empty() failure", ex.Message);
            }
示例#3
0
 public void IsEmpty()
 {
     Assert.Empty("");
 }
示例#4
0
 public void NullIsNotEmpty()
 {
     Assert.Throws <ArgumentNullException>(() => Assert.Empty(null));
 }
示例#5
0
            public void IsEmpty()
            {
                List <int> list = new List <int>();

                Assert.Empty(list);
            }