public void WhatIfThereAreMoreEnemiesThanHeroes() { Scenario scenario = new Scenario(); Dwarf gimli = new Dwarf(); Elf legolas = new Elf(); ChosenOne aragorn = new ChosenOne(); Wizard gandalf = new Wizard(); Orc orc = new Orc(); Orc orc2 = new Orc(); Orc orc3 = new Orc(); Orc orc4 = new Orc(); Orc orc5 = new Orc(); List <CharacterClass> heroes = new List <CharacterClass>() { gimli, legolas, aragorn, gandalf }; List <CharacterClass> villains = new List <CharacterClass>() { orc, orc2, orc3, orc4, orc5 }; BattleEncounter battle = new BattleEncounter(heroes, villains); List <List <CharacterClass> > everything = battle.PlayEncounter(); Assert.IsTrue(battle.EveryoneDead(everything[1])); }
public void BattleEncounterEndsWhenEveryoneOnOneSideDiesPart2Test() { Scenario scenario = new Scenario(); Dwarf gimli = new Dwarf(); Elf legolas = new Elf(); ChosenOne aragorn = new ChosenOne(); Wizard gandalf = new Wizard(); DarkLord orc = new DarkLord(); DarkLord orc2 = new DarkLord(); DarkLord orc3 = new DarkLord(); DarkLord orc4 = new DarkLord(); List <CharacterClass> heroes = new List <CharacterClass>() { gimli, legolas, aragorn, gandalf }; List <CharacterClass> villains = new List <CharacterClass>() { orc, orc2, orc3, orc4 }; BattleEncounter battle = new BattleEncounter(heroes, villains); List <List <CharacterClass> > everything = battle.PlayEncounter(); Assert.IsTrue(battle.EveryoneDead(everything[0])); }