示例#1
0
        public void TestUpdateExtraSpells()
        {
            // Arrange
            Bard bard = new 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.GetExtraSpells();

            // Assert
            Assert.Equal(extraSpells, bard.ExtraSpells);
        }