public void TestThatCharacterHasZeroDodgeChance()
 {
     var target = new Character("Bob", null, 10, 10, 10, new Item(), "Warrior");
     target.DeductCharacterStat("dodgeChance", 10 * .04);
     Assert.AreEqual(target.GetCharacterDodgeChance(), 0);
 }
 public void TestThatCharacterHasZeroSpellPower()
 {
     var target = new Character("Bob", null, 10, 10, 10, new Item(), "Warrior");
     target.DeductCharacterStat("spellPower", 20);
     Assert.AreEqual(target.GetCharacterSpellPower(), 0);
 }
 public void TestThatCharacterHasCorrectSpellPowerAfterDeductingOverAll()
 {
     var target = new Character("Bob", null, 10, 10, 10, new Item(), "Warrior");
     target.DeductCharacterStat("spellPower", 21);
     Assert.AreEqual(target.GetCharacterSpellPower(), 0);
 }
 public void TestThatCharacterHasZeroCritChance()
 {
     var target = new Character("Bob", null, 10, 10, 10, new Item(), "Warrior");
     target.DeductCharacterStat("critChance", 10 * .06);
     Assert.AreEqual(target.GetCharacterCriticalChance(), 0.0);
 }
 public void TestThatCharacterHasCorrectAttackPowerAfterDeductingZero()
 {
     var target = new Character("Bob", null, 10, 10, 10, new Item(), "Warrior");
     target.DeductCharacterStat("attackPower", 0);
     Assert.AreEqual(target.GetCharacterAttackPower(), 20);
 }
 public void TestThatCharacterHasCorrectMagicPointsAfterDeductingZero()
 {
     var target = new Character("Bob", null, 10, 10, 10, new Item(), "Warrior");
     target.DeductCharacterStat("magicPoints",0);
     Assert.AreEqual(target.GetCharacterMagicPoints(), 100);
 }
 public void TestThatCharacterHasCorrectDodgeChanceAfterDeductingOverAll()
 {
     var target = new Character("Bob", null, 10, 10, 10, new Item(), "Warrior");
     target.DeductCharacterStat("dodgeChance", 11 * .04);
     Assert.AreEqual(target.GetCharacterDodgeChance(), 0);
 }
 public void TestThatCharacterHasCorrectCritChangeAfterDeductingOverAll()
 {
     var target = new Character("Bob", null, 10, 10, 10, new Item(), "Warrior");
     target.DeductCharacterStat("critChance", 11 * .06);
     Assert.AreEqual(target.GetCharacterCriticalChance(), 0.0);
 }
 public void TestThatCharacterHasCorrectCritChanceAfterDeductingHalf()
 {
     var target = new Character("Bob", null, 10, 10, 10, new Item(), "Warrior");
     target.DeductCharacterStat("critChance", 5 * .06);
     Assert.AreEqual(target.GetCharacterCriticalChance(), ((10 * .06) - (5 * .06)));
 }