public void TestFireVSNormalSpellCards() { var fire = new FireSpell() { Damage = 20 }; var normal = new NormalSpell() { Damage = 20 }; int fireDamage = fire.CalculateDamage(normal); int normalDamage = normal.CalculateDamage(fire); // fire > normal Assert.AreEqual(40, fireDamage); Assert.AreEqual(10, normalDamage); }
public void TestFireVSWaterSpellCards() { var fire = new FireSpell() { Damage = 20 }; var water = new WaterSpell() { Damage = 20 }; int fireDamage = fire.CalculateDamage(water); int waterDamage = water.CalculateDamage(fire); // water > fire Assert.AreEqual(10, fireDamage); Assert.AreEqual(40, waterDamage); }
public void TestMixedFightKrakenFireSpell() { var kraken = new Kraken() { Damage = 20 }; var fire = new FireSpell() { Damage = 20 }; int krakenDamage = kraken.CalculateDamage(fire); int fireDamage = fire.CalculateDamage(kraken); // water > fire // kraken not affected by spells Assert.AreEqual(40, krakenDamage); Assert.AreEqual(0, fireDamage); }