Esempio n. 1
0
        public void ValidateCombatants_InvalidValues_TiredCharacter()
        {
            // arrange
            List<Combatant> combatants = new List<Combatant>();
            combatants.Add(combatant1);
            combatants.Add(combatant2);
            combatants.Add(combatant3);
            combatants.Add(tiredCombatant1);

            Battle battleClass = new Battle();

            // act
            bool validateCombatants = battleClass.ValidateCombatants(combatants);

            // assert
            Assert.IsFalse(validateCombatants, "ValidateCombatants did not validate the invalid tired combatant correctly");
        }
Esempio n. 2
0
        public void ValidateCombatants_InvalidValues_EmptyCombatantList()
        {
            // arrange
            List<Combatant> combatants = new List<Combatant>();

            Battle battleClass = new Battle();

            // act
            bool validateCombatants = battleClass.ValidateCombatants(combatants);

            // assert
            Assert.IsFalse(validateCombatants, "ValidateCombatants did not validate the invalid empty combatantlist correctly");
        }
Esempio n. 3
0
        public void ValidateCombatants_ValidValues()
        {
            // arrange
            List<Combatant> combatants = new List<Combatant>();
            combatants.Add(combatant1);
            combatants.Add(combatant2);
            combatants.Add(combatant3);

            Battle battleClass = new Battle();

            // act
            bool validateCombatants = battleClass.ValidateCombatants(combatants);

            // assert
            Assert.IsTrue(validateCombatants, "ValidateCombatants did not validate the valid combatants correctly");
        }