Exemplo n.º 1
0
        public void LevelingUpIncrementsTheLevelNumber()
        {
            var levelUp = new LevelUpCharacter();

            levelUp.LevelUp(character);
            Assert.Equal(2, character.Level);
        }
Exemplo n.º 2
0
        public void IncreasesBaseAttackBonus()
        {
            var levelUp = new LevelUpCharacter();
            var level   = new Level(2);

            character.Class.BaseAttackBonusRate = 1;
            Assert.Equal(0, character.Offense.BaseAttackBonus.TotalValue);
            levelUp.LevelUp(character);
            Assert.Equal(1, character.Offense.BaseAttackBonus.TotalValue);
        }
Exemplo n.º 3
0
        public void IncreasesSavingsThrowsOnLevelUp()
        {
            character.Class.WillSaveRate      = 1;
            character.Class.FortitudeSaveRate = 1;
            character.Class.ReflexSaveRate    = 1;
            Assert.Equal(0, character.Defense.WillSave.TotalValue);
            Assert.Equal(0, character.Defense.ReflexSave.TotalValue);
            Assert.Equal(0, character.Defense.FortitudeSave.TotalValue);


            var levelUp = new LevelUpCharacter();
            var level   = new Level(2);

            levelUp.LevelUp(character);
            Assert.Equal(1, character.Defense.WillSave.TotalValue);
            Assert.Equal(1, character.Defense.ReflexSave.TotalValue);
            Assert.Equal(1, character.Defense.FortitudeSave.TotalValue);
        }