Esempio n. 1
0
        public void TestSorcererSpellsPerDay()
        {
            // Arrange
            Sorcerer sorcerer = new Sorcerer("sorcerer");

            int[,] SpellsPerDaySorcerer = new int[20, 10] {
                { 5, 3, 0, 0, 0, 0, 0, 0, 0, 0 },
                { 6, 4, 0, 0, 0, 0, 0, 0, 0, 0 },
                { 6, 5, 0, 0, 0, 0, 0, 0, 0, 0 },
                { 6, 6, 3, 0, 0, 0, 0, 0, 0, 0 },
                { 6, 6, 4, 0, 0, 0, 0, 0, 0, 0 },
                { 6, 6, 5, 3, 0, 0, 0, 0, 0, 0 },
                { 6, 6, 6, 4, 0, 0, 0, 0, 0, 0 },
                { 6, 6, 6, 5, 3, 0, 0, 0, 0, 0 },
                { 6, 6, 6, 6, 4, 0, 0, 0, 0, 0 },
                { 6, 6, 6, 6, 5, 3, 0, 0, 0, 0 },
                { 6, 6, 6, 6, 6, 4, 0, 0, 0, 0 },
                { 6, 6, 6, 6, 6, 5, 3, 0, 0, 0 },
                { 6, 6, 6, 6, 6, 6, 4, 0, 0, 0 },
                { 6, 6, 6, 6, 6, 6, 5, 3, 0, 0 },
                { 6, 6, 6, 6, 6, 6, 6, 4, 0, 0 },
                { 6, 6, 6, 6, 6, 6, 6, 5, 3, 0 },
                { 6, 6, 6, 6, 6, 6, 6, 6, 4, 0 },
                { 6, 6, 6, 6, 6, 6, 6, 6, 5, 3 },
                { 6, 6, 6, 6, 6, 6, 6, 6, 6, 4 },
                { 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 }
            };

            try
            {
                // Act
                sorcerer.UpdateSpellsPerDay();

                // Assert
                Assert.Equal(SpellsPerDaySorcerer, sorcerer.DailySpells);
            }
            catch { }
        }