public static void AddTo() { var gameObject = new UnityEngine.GameObject(); try { var derived = new Derived { GameObject = gameObject, MainThread = Mux.Forms.mainThread }; derived.AddTo(gameObject); Assert.IsNull(derived.GameObject); Assert.IsNull(derived.MainThread); Assert.AreEqual(1, derived.awakeCount); } finally { UnityEngine.Object.Destroy(gameObject); } }