public void TestUpdateSpellsDC() { Bard bard = new Bard("bard"); bard.Charisma = 32; bard.KeyAttributeModifier = bard.GetModifier(bard.Charisma); int[] spellsDc = new int[10] { 21, 22, 23, 24, 25, 26, 27, -1, -1, -1 }; // Act bard.UpdateSpellsDC(); // Assert Assert.Equal(spellsDc, bard.SpellsDC); }
public void TestUpdateExtraSpells() { // Arrange Bard bard = new Bard("bard"); bard.Charisma = 32; bard.KeyAttributeModifier = bard.GetModifier(bard.Charisma); decimal[] extraSpells = new decimal[10] { 0, 3, 3, 3, 2, 2, 2, -1, -1, -1 }; // Act bard.UpdateExtraSpells(); // Assert Assert.Equal(extraSpells, bard.ExtraSpells); }