Esempio n. 1
0
 public void destroy_turns_state_destroyed()
 {
     lifecycle.Initialize();
     lifecycle.Destroy();
     Assert.That(lifecycle.state, Is.EqualTo(LifecycleState.DESTROYED));
     Assert.That(lifecycle.Destroyed, Is.True);
 }
 public IContext Destroy(Action callback = null)
 {
     _lifecycle.Destroy(callback);
     return(this);
 }