Esempio n. 1
0
        public void ConMod2Level3BarbarianHitDiceof12ReturnsBetween21And42()
        {
            //Arrange
            HitPoints hitPoints = new HitPoints();
            //Act
            int actual = hitPoints.GetTotalHitPoints(2, 3, "Barbarian");

            //Assert
            Assert.IsTrue(actual >= 21 && actual <= 42);
        }
Esempio n. 2
0
        public void ConMod2Level3FighterHitDiceof10ReturnsBetween16And30()
        {
            //Arrange
            HitPoints hitPoints = new HitPoints();
            //Act
            int actual = hitPoints.GetTotalHitPoints(2, 3, "Fighter");

            //Assert
            Assert.IsTrue(actual >= 18 && actual <= 36);
        }
Esempio n. 3
0
        public void ConMod2Level3DruidHitDiceof8ReturnsBetween12And24()
        {
            //Arrange
            HitPoints hitPoints = new HitPoints();
            //Act
            int actual = hitPoints.GetTotalHitPoints(2, 3, "Druid");

            //Assert
            Assert.IsTrue(actual >= 15 && actual <= 30);
        }
Esempio n. 4
0
        public void ConMod2Level3BardHitDiceof6ReturnsBetween12And24()
        {
            //Arrange
            HitPoints hitPoints = new HitPoints();
            //Act
            int actual = hitPoints.GetTotalHitPoints(2, 3, "Bard");

            //Assert
            Assert.IsTrue(actual >= 12 && actual <= 24);
        }
Esempio n. 5
0
        public void ConModNeg4Level3Wizard()
        {
            //Arrange
            HitPoints hitPoints = new HitPoints();
            //Act
            int expected = 3;
            int actual   = hitPoints.GetTotalHitPoints(-4, 3, "Wizard");

            //Assert
            Assert.AreEqual(expected, actual);
        }
Esempio n. 6
0
        public virtual void CalculateHitPoints()
        {
            HitPoints hp = new HitPoints();

            Attack.TotalHitPoints = hp.GetTotalHitPoints(StatMods.ConAbilityMod, PlayerLevel, ChosenClass);
        }