コード例 #1
0
ファイル: UnitTest1.cs プロジェクト: lgagomes/CharUtil
        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);
        }