public void Kraken_Waterspell() { ICard card1 = new Kraken(40); ICard card2 = new WaterSpell(40); float desiredCard1Damage = 40; float desiredCard2Damage = 0; 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); }