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