public void TestWisdomModifier() { // Arrange Cleric cleric = new Cleric("cleric"); // Act cleric.Wisdom = 6; cleric.KeyAttributeModifier = cleric.GetModifier(cleric.Wisdom); // Assert Assert.Equal(-2, cleric.KeyAttributeModifier); }
public void TestPositiveModifier() { // Arrange Cleric cleric = new Cleric() { Wisdom = 44 /* Act */ }; cleric.KeyAttributeModifier = cleric.GetModifier(cleric.Wisdom); // Assert Assert.Equal(17, cleric.KeyAttributeModifier); }