예제 #1
0
        public void TestSetStaringHitPoints_WhereTheCalculatedHPAreNegative()
        {
            int constitution = 3;

            Assert.AreEqual(1, Character.GetAdditionalHitPointsForNewLevel(2, AttributeBonuses.GetConstitution_HitPointBonus(constitution)), "The hit points were not as expected");
        }
예제 #2
0
        public void TestGetAdditionalHitPointsForNewLevel_WhereTheCalculatedHPArePositive()
        {
            int constitution = 13;

            Assert.AreEqual(4, Character.GetAdditionalHitPointsForNewLevel(3, AttributeBonuses.GetConstitution_HitPointBonus(constitution)), "The hit points were not as expected");
        }