Beispiel #1
0
        public void Boss_Hit_Medium_Success()
        {
            Boss_Medium boss = new Boss_Medium(900, 80, 12, 2000, 2000);

            Assert.IsFalse(boss.Hit());

            boss.X       = 100;
            boss.startup = false;
            Assert.IsFalse(boss.Hit());
            Assert.IsTrue(boss.health == 11);

            boss.health = 1;
            Assert.IsTrue(boss.Hit());
            Assert.IsFalse(boss.alive);
        }