public void ContinueBattle_InvalidValues_EmptyCombatantList() { // arrange List<Combatant> combatants = new List<Combatant>(); Battle battleClass = new Battle(); // act bool continueBattle = battleClass.ContinueBattle(combatants); // assert Assert.IsFalse(continueBattle, "ContinueBattle continued even though there were not combatants in the list"); }
public void ContinueBattle_ShouldNotContinue() { // arrange List<Combatant> combatants = new List<Combatant>(); combatants.Add(combatant2); combatants.Add(combatant3); Battle battleClass = new Battle(); // act bool continueBattle = battleClass.ContinueBattle(combatants); // assert Assert.IsFalse(continueBattle, "ContinueBattle continued even when it should not have"); }
public void ContinueBattle_InvalidValues_EmptyCombatant() { // arrange List<Combatant> combatants = new List<Combatant>(); combatants.Add(combatant1); combatants.Add(new Combatant()); Battle battleClass = new Battle(); // act bool continueBattle = battleClass.ContinueBattle(combatants); }
public void ContinueBattle_ShouldContinue() { // arrange List<Combatant> combatants = new List<Combatant>(); combatants.Add(combatant1); combatants.Add(combatant2); combatants.Add(combatant3); Battle battleClass = new Battle(); // act bool continueBattle = battleClass.ContinueBattle(combatants); // assert Assert.IsTrue(continueBattle, "ContinueBattle did not continue battle when it was supposed to"); }