Ejemplo n.º 1
0
 public void GivenATotalScore_StringIsReturned(int totalScore, string expected)
 {
     AbilityModifier ability = new AbilityModifier();
     string actual = ability.Calculate(totalScore).ToString();
     Assert.AreEqual(expected, actual);
 }
Ejemplo n.º 2
0
 public virtual void CalculateAbilityMods()
 {
     AbilityModifier ability = new AbilityModifier();
     StatMods.StrAbilityMod = ability.Calculate(TotalScore.StrTotalScore);
     StatMods.DexAbilityMod = ability.Calculate(TotalScore.DexTotalScore);
     StatMods.ConAbilityMod = ability.Calculate(TotalScore.ConTotalScore);
     StatMods.IntAbilityMod = ability.Calculate(TotalScore.IntTotalScore);
     StatMods.WisAbilityMod = ability.Calculate(TotalScore.WisTotalScore);
     StatMods.ChaAbilityMod = ability.Calculate(TotalScore.ChaTotalScore);
 }