public void MinefieldModelGamOver1Test() { MinefieldTable table = new MinefieldTable(); _model.NewGame(); table = _model.Table; table.fieldValues[8, 9] = FieldType.HeavyB; _model.AdvanceTime(); Assert.AreEqual(_model.IsGameOver, true); Assert.AreEqual(table.fieldValues[9, 9], FieldType.HeavyB); }
private void timer1_Tick(object sender, EventArgs e) { _model.AdvanceTime(); // játék léptetése }
private void Timer_Tick(object sender, EventArgs e) { _model.AdvanceTime(); }