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

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

                Assert.Empty(list);
            }