示例#1
0
        public void CheckRecordsOnGameWin()
        {
            var             field           = MinefieldWithCheckFillCalled.CreateDefault();
            SettingsManager settingsManager = new SettingsManager();

            settingsManager.SelectGameType(GameType.Advanced);
            Game game = new GameWithOpenConstructor(settingsManager, MinefieldTestHelper.GetDefaultRecords(), field);
        }
示例#2
0
        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);
        }