public void Dragon_Knight() { ICard card1 = new Dragon(100); ICard card2 = new Knight(40); float desiredCard1Damage = 100; float desiredCard2Damage = 40; float actualCard1Damage = card1.CombatBehavior(card2); float actualCard2Damage = card2.CombatBehavior(card1); Assert.AreEqual(desiredCard1Damage, actualCard1Damage); Assert.AreEqual(desiredCard2Damage, actualCard2Damage); }
public void Dragon_Waterspell() { ICard card1 = new Dragon(100); ICard card2 = new WaterSpell(40); float desiredCard1Damage = 50; float desiredCard2Damage = 80; float actualCard1Damage = card1.CombatBehavior(card2); float actualCard2Damage = card2.CombatBehavior(card1); Assert.AreEqual(desiredCard1Damage, actualCard1Damage); Assert.AreEqual(desiredCard2Damage, actualCard2Damage); }
public void FireElf_Dragon() { ICard card1 = new FireElf(60); ICard card2 = new Dragon(100); float desiredCard1Damage = 60; float desiredCard2Damage = 0; float actualCard1Damage = card1.CombatBehavior(card2); float actualCard2Damage = card2.CombatBehavior(card1); Assert.AreEqual(desiredCard1Damage, actualCard1Damage); Assert.AreEqual(desiredCard2Damage, actualCard2Damage); }