public void NewGameModelSmallMapTest() { _model._size = 6; _model.NewGame(); Assert.AreEqual(0, _model.Table._gameSteps); Assert.AreEqual(0, _model.RedScore); Assert.AreEqual(0, _model.BlueScore); Int32 emptyFields = 0; for (Int32 i = 0; i < _model._size; i++) { for (Int32 j = 0; j < _model._size; j++) { if (_model.Table.GetValue(i, j) == 0) { emptyFields++; } } } Assert.AreEqual(_model._size * _model._size, emptyFields); }
private void ViewModel_NewGameSmall(object sender, EventArgs e) { _model._size = 6; _model.NewGame(); }