Exemple #1
0
        public void TesBardKnownSpells()
        {
            // Arrange
            Bard bard = new Bard("bard");

            int[,] spellsKnownBard = new int[20, 10] {
                { 4, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
                { 5, 2, 0, 0, 0, 0, 0, 0, 0, 0 },
                { 6, 3, 0, 0, 0, 0, 0, 0, 0, 0 },
                { 6, 3, 2, 0, 0, 0, 0, 0, 0, 0 },
                { 6, 4, 3, 0, 0, 0, 0, 0, 0, 0 },
                { 6, 4, 3, 0, 0, 0, 0, 0, 0, 0 },
                { 6, 4, 4, 2, 0, 0, 0, 0, 0, 0 },
                { 6, 4, 4, 3, 0, 0, 0, 0, 0, 0 },
                { 6, 4, 4, 3, 0, 0, 0, 0, 0, 0 },
                { 6, 4, 4, 4, 2, 0, 0, 0, 0, 0 },
                { 6, 4, 4, 4, 3, 0, 0, 0, 0, 0 },
                { 6, 4, 4, 4, 3, 0, 0, 0, 0, 0 },
                { 6, 4, 4, 4, 4, 2, 0, 0, 0, 0 },
                { 6, 4, 4, 4, 4, 3, 0, 0, 0, 0 },
                { 6, 4, 4, 4, 4, 3, 0, 0, 0, 0 },
                { 6, 5, 4, 4, 4, 4, 2, 0, 0, 0 },
                { 6, 5, 5, 4, 4, 4, 3, 0, 0, 0 },
                { 6, 5, 5, 5, 4, 4, 3, 0, 0, 0 },
                { 6, 5, 5, 5, 5, 4, 4, 0, 0, 0 },
                { 6, 5, 5, 5, 5, 5, 4, 0, 0, 0 }
            };
            try
            {
                // Act
                bard.UpdateKnownSpells();

                // Assert
                Assert.Equal(spellsKnownBard, bard.KnownSpells);
            }
            catch { }
        }