コード例 #1
0
        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);
        }
コード例 #2
0
    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);
    }