Beispiel #1
0
 public static void ASSERT_NOT_NULL(object o,
                                    string text)
 {
     if (o == null)
     {
         throw AssertionViolationException.Create(text);
     }
 }
Beispiel #2
0
 public static void ASSERT(bool res,
                           string text)
 {
     if (res == false)
     {
         throw AssertionViolationException.Create(text);
     }
 }
Beispiel #3
0
 public static void ASSERT(bool res,
                           string text,
                           params object[] args)
 {
     if (res == false)
     {
         throw AssertionViolationException.Create(text, args);
     }
 }
Beispiel #4
0
 public static void ASSERT(bool res,
                           string text,
                           object arg1,
                           object arg2,
                           object arg3)
 {
     if (res == false)
     {
         throw AssertionViolationException.Create(text, arg1, arg2, arg3);
     }
 }