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

            for (int i = 0; i < 100; i++)
            {
                testGame.ShrinkSafeZone();
                testGame.CheckSafeZone();
            }

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