public void CheckRecordsOnGameWin() { var field = MinefieldWithCheckFillCalled.CreateDefault(); SettingsManager settingsManager = new SettingsManager(); settingsManager.SelectGameType(GameType.Advanced); Game game = new GameWithOpenConstructor(settingsManager, MinefieldTestHelper.GetDefaultRecords(), field); }
public void OnChangeGameType_MinefieldFillCalled() { var field = MinefieldWithCheckFillCalled.CreateDefault(); SettingsManager settingsManager = new SettingsManager(); settingsManager.SelectGameType(GameType.Advanced); Game game = new GameWithOpenConstructor(settingsManager, MinefieldTestHelper.GetDefaultRecords(), field); game.Settings.SelectGameType(GameType.Newbie); Assert.AreEqual(true, field.FillMethodCalled); }