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"); }
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"); }
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"); }