public void GivenATotalScore_StringIsReturned(int totalScore, string expected) { AbilityModifier ability = new AbilityModifier(); string actual = ability.Calculate(totalScore).ToString(); Assert.AreEqual(expected, actual); }
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); }