Beispiel #1
0
 public static void AssertNotNullOrEmpty(string value, string format, params string[] parameters)
 {
     if (string.IsNullOrEmpty(value))
     {
         UDebug.Fail(format, parameters);
     }
 }
Beispiel #2
0
 public static void Assert(bool condition, string format, params string[] parameters)
 {
     if (!condition)
     {
         UDebug.Fail(format, parameters);
     }
 }
Beispiel #3
0
 public static void AssertService <T>(T service)
     where T : class
 {
     if (service == null)
     {
         UDebug.Fail("Service {0} could not be loaded.", typeof(T).Name);
     }
 }
Beispiel #4
0
 public static void AssertNotNull <T>(T value, string format, params string[] parameters)
     where T : class
 {
     if (value == null)
     {
         UDebug.Fail(format, parameters);
     }
 }
Beispiel #5
0
 public static void Fail(string message)
 {
     UDebug.Fail((Exception)null, message);
 }
Beispiel #6
0
 public static void Fail(Exception ex)
 {
     UDebug.Fail(ex, string.Empty);
 }
Beispiel #7
0
 public static void Fail(string format, params object[] parameters)
 {
     UDebug.Fail(null, format, parameters);
 }