Exemple #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);
 }
Exemple #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);
        }
 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);
 }
Exemple #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);
        }