Exemple #1
0
 public static void IsTrue(this VAssertSingle <bool> assert)
 {
     if (!assert.Value)
     {
         assert.Error("Value expected to be true");
     }
 }
Exemple #2
0
 public static void IsFalse(this VAssertSingle <bool> assert)
 {
     if (assert.Value)
     {
         assert.Error("Value expected to be false");
     }
 }
Exemple #3
0
        public static bool IsNotNull <T>(this VAssertSingle <T> assert)
            where T : class
        {
            var result = assert.Value != null;

            if (!result)
            {
                assert.Error("Cannot be null");
            }

            return(result);
        }