Beispiel #1
0
        public void Damage()
        {
            int damage = player1.Attack(enemy1);

            Assert.AreEqual(20, damage);
            Assert.AreEqual(30, enemy1.GetHP());
            damage = enemy1.Attack(player1);
            Assert.AreEqual(10, damage);
            Assert.AreEqual(90, player1.GetHP());
        }