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

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

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