public void CheckMedicHasDefaultActions() { var generalist = new GeneralistPlayer(); var medic = new MedicPlayer(); Assert.AreEqual(Settings.Default.DEFAULT_PLAYER_ACTIONS, medic.GetNumberOfActions()); }
public void ComparePlayersWithSameRole() { var playerOne = new MedicPlayer(); var playerTwo = new MedicPlayer(); Assert.AreEqual <bool>(true, playerOne.Equals(playerTwo)); }
public void ComparePlayersWithdDifferentRole() { var loc = new Location("TESTLOC", DiseaseColour.Black); var playerOne = new MedicPlayer(); var playerTwo = new GeneralistPlayer(); Assert.AreEqual <bool>(false, playerOne.Equals(playerTwo)); }
private Player GeneratePlayer(PlayerRole role) { Player player = null; switch (role) { case PlayerRole.MEDIC: player = new MedicPlayer(); break; case PlayerRole.GENERALIST: player = new GeneralistPlayer(); break; case PlayerRole.RESEARCHER: player = new ResearcherPlayer(); break; default: break; } return(player); }