Beispiel #1
0
 public static void IsNotNull(UnityEngine.Object value, string message)
 {
     if (value == null)
     {
         Fail(AssertionMessageUtil.NullFailureMessage(value, false), message);
     }
 }
Beispiel #2
0
 public static void IsNotNull(UnityEngine.Object value, string message)
 {
     if (!(value == (UnityEngine.Object)null))
     {
         return;
     }
     Assert.Fail(AssertionMessageUtil.NullFailureMessage((object)value, false), message);
 }
Beispiel #3
0
 public static void IsNotNull <T>(T value, string message) where T : class
 {
     if (typeof(UnityEngine.Object).IsAssignableFrom(typeof(T)))
     {
         IsNotNull(value as UnityEngine.Object, message);
     }
     else if (value == null)
     {
         Fail(AssertionMessageUtil.NullFailureMessage(value, false), message);
     }
 }
Beispiel #4
0
 public static void IsNull <T>(T value, string message) where T : class
 {
     if (typeof(UnityEngine.Object).IsAssignableFrom(typeof(T)))
     {
         Assert.IsNull((object)value as UnityEngine.Object, message);
     }
     else
     {
         if ((object)value == null)
         {
             return;
         }
         Assert.Fail(AssertionMessageUtil.NullFailureMessage((object)value, true), message);
     }
 }