Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
        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);
        }