public void AccelerationModelNewGame() { m_model.NewGame(); Assert.AreEqual(m_model.m_motorCycle.m_consumption, 1); Assert.AreEqual(m_model.m_motorCycle.m_petrolQuantity, 1000); Assert.AreEqual(m_model.m_petrolsList.Count, 0); }
private void NewGameStrip_Click(Object sender, EventArgs e) { m_model.NewGame(); _saveStrip.Enabled = false; _loadStrip.Enabled = false; _pauseOrResumeStrip.Enabled = true; _pauseOrResumeStrip.Text = "Szüneteltetés"; m_model.m_isPaused = false; NewGame(); }
private void ViewModel_NewGame(object sender, EventArgs e) { m_model.NewGame(); }