Esempio n. 1
0
 public void GivenAWizardLevel_SpellArrayIsReturned(int level, int[] expectedSpells)
 {
     PlayerClass player = new Wizard();
     player.AssignLevel(level);
     player.GetClassSpellsPerDay();
     int[] actual = player.Magic.ClassSpellsPerDay;
     Assert.AreEqual(expectedSpells, actual);
 }
Esempio n. 2
0
        public void GivenAWizardLevel_SpellArrayIsReturned(int level, int[] expectedSpells)
        {
            PlayerClass player = new Wizard();

            player.AssignLevel(level);
            player.GetClassSpellsPerDay();
            int[] actual = player.Magic.ClassSpellsPerDay;
            Assert.AreEqual(expectedSpells, actual);
        }
Esempio n. 3
0
 public void BaseAttackIsReturned()
 {
     //Arrange
     Wizard player = new Wizard();
     player.AssignBaseStats(10, 10, 10, 10, 10, 10);
     player.AssignMiscMods(0, 0, 0, 0, 0, 0);
     player.AssignLevel(1);
     //Act
     player.CalculateBaseAttack();
     int actual = player.Attack.BaseAttack;
     int expected = 0;
     Assert.AreEqual(expected, actual);
 }
Esempio n. 4
0
        public void BaseAttackIsReturned()
        {
            //Arrange
            Wizard player = new Wizard();

            player.AssignBaseStats(10, 10, 10, 10, 10, 10);
            player.AssignMiscMods(0, 0, 0, 0, 0, 0);
            player.AssignLevel(1);
            //Act
            player.CalculateBaseAttack();
            int actual   = player.Attack.BaseAttack;
            int expected = 0;

            Assert.AreEqual(expected, actual);
        }