Exemplo n.º 1
0
        [Test] // FireElve against MonsterCard -> expect Dmg stays the same
        public void CalcDamage_AgainstMonsterCard_ReturnsInt()
        {
            //Arrange
            FireElve elfi     = new FireElve();
            FireElve evilelfi = new FireElve();
            //Act
            int elfiDamage = elfi.CalcDamage(evilelfi);

            //Assert
            Assert.AreEqual(elfiDamage, elfi.Damage);
        }
Exemplo n.º 2
0
        [Test] // FireElve against NORMAL Spell -> expect Dmg doubled
        public void CalcDamage_AgainstNormalSpell_ReturnsInt()
        {
            //Arrange
            FireElve    elfi       = new FireElve();
            NormalSpell enemySpell = new NormalSpell();
            //Act
            int elfiDamage     = elfi.CalcDamage(enemySpell);
            int expectedDamage = 28;

            //Assert
            Assert.AreEqual(expectedDamage, elfiDamage);
        }