public void AbilityStatModifiersTrackChangesToAbility() { var ability = new AbilityScore(AbilityScoreTypes.Strength, 10); var modifier = new AbilityStatModifier(ability); Assert.Equal(0, modifier.Modifier); ability.SetValue(20); Assert.Equal(05, modifier.Modifier); }
public void AbilityStatModifiersTrackChangesToAbility() { var ability = new AbilityScore(); ability.SetValue(10); var modifier = new AbilityStatModifier(ability); Assert.AreEqual(0, modifier.Modifier); ability.SetValue(20); Assert.AreEqual(05, modifier.Modifier); }