public void Resume() { Assert.AreEqual(model.Paused, false); model.Pause(); Assert.AreEqual(model.Paused, true); model.Resume(); Assert.AreEqual(model.Paused, false); }
private void PauseResume() { if (_model.Paused) { _model.Resume(); } else { _model.Pause(); } OnPropertyChanged("PauseResumeLabel"); }
private void AsteroidsForm_PauseResume(object sender, EventArgs e) { if (_model.Paused) { _model.Resume(); _pauseResumeButton.Text = "Pause"; } else { _model.Pause(); _pauseResumeButton.Text = "Resume"; } }