Ejemplo n.º 1
0
        public void ReceiveDamageTest()
        {
            Character    c1Clone = c1.Copy();
            Destructible d1Clone = d1.Copy();
            Destructible d2Clone = d2.Copy();

            c1Clone.ApplyDamage(d1Clone);

            // Character destroyed D1.
            Assert.IsTrue(d1Clone.HP <= 0);

            c1Clone.ApplyDamage(d2Clone);

            // D2 receives full damage of C1's strength of 1 point
            Assert.AreEqual(d2Clone.HP, 4);
        }