Example #1
0
 public void suspend_turns_state_suspended()
 {
     lifecycle.Initialize();
     lifecycle.Suspend();
     Assert.That(lifecycle.state, Is.EqualTo(LifecycleState.SUSPENDED));
     Assert.That(lifecycle.Suspended, Is.True);
 }
 public IContext Suspend(Action callback = null)
 {
     _lifecycle.Suspend(callback);
     return(this);
 }