public static void IsNotNull(UnityEngine.Object value, string message) { if (value == null) { Fail(AssertionMessageUtil.NullFailureMessage(value, false), message); } }
public static void IsNotNull(UnityEngine.Object value, string message) { if (!(value == (UnityEngine.Object)null)) { return; } Assert.Fail(AssertionMessageUtil.NullFailureMessage((object)value, false), message); }
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); } }
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); } }