public void DwarfClericLevel6Returns3() { Feats feats = new Feats(); int actual = feats.TotalFeats(6, "Dwarf"); int expected = 3; Assert.AreEqual(expected, actual); }
public void GivenAClass_ClassFeatsAreReturned(string chosenClass, int level, int expected) { Feats feats = new Feats(); int actual = feats.ClassFeatCalculate(chosenClass, level); Assert.AreEqual(expected, actual); }
public void HumanFighterLevel10Returns11() { Feats feats = new Feats(); int actual = feats.TotalFeats(10,"Human"); int expected = 5; Assert.AreEqual(expected, actual); }
public void GivenARace_ReturnRaceFeats(string race, int expected) { Feats feats = new Feats(); int actual = feats.RacialFeatCalculate(race); Assert.AreEqual(expected, actual); }
public void GivenALevel_ReturnsFeat(int level, int expected) { Feats feats = new Feats(); int actual = feats.FeatCalculate(level); Assert.AreEqual(expected, actual); }
public void CalculateFeats() { Feats feat = new Feats(); PlayerClass.ClassBonusFeats = feat.ClassFeatCalculate(PlayerClass.ChosenClass, PlayerClass.PlayerLevel); TotalFeats = Race.RaceBonusFeats + feat.FeatCalculate(PlayerClass.PlayerLevel); }