Beispiel #1
0
        public void LegendarTest()
        {
            int         expected    = 15;
            Proficiency proficiency = new Proficiency(Levels.legendary, this.level);
            int         actual      = proficiency.ProficiencyBonus();

            Assert.AreEqual(expected, actual, 0.001, "Legendary Bonus not calculating correctly");
        }
Beispiel #2
0
        public void ExpertTest()
        {
            int         expected    = 11;
            Proficiency proficiency = new Proficiency(Levels.expert, this.level);
            int         actual      = proficiency.ProficiencyBonus();

            Assert.AreEqual(expected, actual, 0.001, "Expert Bonus not calculating correctly");
        }
Beispiel #3
0
        public void MasterTest()
        {
            int         expected    = 13;
            Proficiency proficiency = new Proficiency(Levels.master, this.level);
            int         actual      = proficiency.ProficiencyBonus();

            Assert.AreEqual(expected, actual, 0.001, "Master Bonus not calculating correctly");
        }
Beispiel #4
0
        public void TrainedTest()
        {
            int         expected    = 9;
            Proficiency proficiency = new Proficiency(Levels.trained, this.level);
            int         actual      = proficiency.ProficiencyBonus();

            Assert.AreEqual(expected, actual, 0.001, "Trained Bonus not calculating correctly");
        }