Пример #1
0
        [Test] // Enemy NORMAL Spell against Kraken -> expect 0 enemy Dmg
        public void CalcEnemyDamage_AgainstNORMALSpell_ReturnsInt()
        {
            //Arrange
            Kraken      leviathan  = new Kraken();
            NormalSpell enemySpell = new NormalSpell();
            //Act
            int enemyDamage    = enemySpell.CalcDamage(leviathan);
            int expectedDamage = 0;

            //Assert
            Assert.AreEqual(expectedDamage, enemyDamage);
        }
Пример #2
0
        [Test] // NormalSpell against NORMAL Spell -> expect Dmg stays the same
        public void CalcDamage_AgainstNormalSpell_ReturnsInt()
        {
            //Arrange
            NormalSpell norm       = new NormalSpell();
            NormalSpell enemySpell = new NormalSpell();
            //Act
            int normDamage     = norm.CalcDamage(enemySpell);
            int expectedDamage = 40;

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