Esempio n. 1
0
        public void CheckMedicHasDefaultActions()
        {
            var generalist = new GeneralistPlayer();
            var medic      = new MedicPlayer();

            Assert.AreEqual(Settings.Default.DEFAULT_PLAYER_ACTIONS, medic.GetNumberOfActions());
        }
Esempio n. 2
0
        public void ComparePlayersWithSameRole()
        {
            var playerOne = new MedicPlayer();
            var playerTwo = new MedicPlayer();

            Assert.AreEqual <bool>(true, playerOne.Equals(playerTwo));
        }
Esempio n. 3
0
        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));
        }
Esempio n. 4
0
        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);
        }