public static void AddPool <TPool>(Action <TPool> poolCreatedCallback) where TPool : SHPoolBase { Throw.AnyNull(new { poolCreatedCallback }); var pool = s_instance.gameObject.AddComponent <TPool> (); poolCreatedCallback(pool); AddPool(pool); }
public void AnyNull_AnyPropertieNull_Exception() { Assert.Catch <ArgumentNullException> (() => { Throw.AnyNull(new { a = (string)null, b = "2", c = 3l }); }); Assert.Catch <ArgumentNullException> (() => { Throw.AnyNull(new { a = 1, b = (object)null, c = 3l }); }); Assert.Catch <ArgumentNullException> (() => { Throw.AnyNull(new { a = 1, b = "2", c = (string)null }); }); }
public void AnyNull_AllPropertiesNotNull_NoException() { Throw.AnyNull(new { a = 1, b = "2", c = 3l }); }