예제 #1
0
        public void Should_BallKillPlayerInSurvivalMode()
        {
            var testGame = new GameModel(100, 100, 100, 1);
            var testForm = new SurvivalModeForm(testGame);
            var player   = testGame.Players.First();

            for (int i = 0; i < 1000; i++)
            {
                testGame.SurvivalModeBallsMoves(testForm);
                if (testGame.CheckAlivePlayers())
                {
                    break;
                }
            }

            Assert.AreEqual(false, player.IsAlive);
        }