public void ReversiGameModelNewGameInitializeTooSmallTest() { Int32[] wrongGameTableSizesArray = new Int32[] { 10, 2, 20 }; // <- 2 _dataAccess = new ReversiFileDataAccess(wrongGameTableSizesArray); Assert.ThrowsException<ReversiModelException>(() => _model = new ReversiGameModel(_dataAccess, _tableSizeDefaultSetting)); }
public void Initialize() { _dataAccess = new ReversiFileDataAccess(_supportedGameTableSizesArray); _model = new ReversiGameModel(_dataAccess, _tableSizeDefaultSetting); _model.UpdateTable += new EventHandler<ReversiUpdateTableEventArgs>(model_UpdateTable); _model.SetGameEnded += new EventHandler<ReversiSetGameEndedEventArgs>(model_SetGameEnded); _model.UpdatePlayerTime += new EventHandler<ReversiUpdatePlayerTimeEventArgs>(model_UpdatePlayerTime); }