Example #1
0
 public void TestEmptyOrNullWithFalse()
 {
     Assert.Throws <XAssertionFailedException>(() =>
     {
         ICollection <string> testVar = new List <string> {
             "test"
         };
         XAssert.That(testVar, Is.EmptyOrNull());
     });
 }
Example #2
0
        public void TestEmptyOrNullWithTrue()
        {
            ICollection <string> testVar = null;

            XAssert.That(testVar, Is.EmptyOrNull());
        }