Exemplo n.º 1
0
 public void OnMissionVoted(int id, bool vote)
 {
     _pem.VoteMission(id, vote);
 }
Exemplo n.º 2
0
        public void TestVoteMissionSuccess()
        {
            game.Start(users);
            playerEventManager.PickTeam(new int[] { 0, 1, 2 });
            playerEventManager.VoteMission(0, true);
            playerEventManager.VoteMission(1, true);
            playerEventManager.VoteMission(2, true);

            Assert.That(game.CurrentPhase, Is.EqualTo(Phase.TeamPicking));
            Assert.That(game.ResistanceWinCount, Is.EqualTo(1));
            Assert.That(game.CurrentRound, Is.EqualTo(1));
        }