public void DealAgeCardsFor3PlayersTest() { var manager = new GameFlowManager(); manager.CreateNewPlayer("paul"); manager.CreateNewPlayer("mary"); manager.CreateNewPlayer("tracy"); manager.SetupGame(); manager.StartAge(); Assert.IsFalse(manager.Players.Any(p => p.SelectableCards.Count != 7)); Assert.IsFalse(manager.Players.Any(p => p.SelectableCards.Any(c => c.Age != Age.I))); }
public void PlayTurnTest() { var manager = new GameFlowManager(); manager.CreateNewPlayer("paul"); manager.CreateNewPlayer("mary"); manager.CreateNewPlayer("tracy"); manager.SetupGame(); manager.StartAge(); for (int i = 0; i < 7; i++) { foreach (var p in manager.Players) { p.SelectedCard = p.SelectableCards[0]; p.ChosenAction = TurnAction.BuyCard; } manager.PlayTurn(); manager.CollectTurnRewards(); manager.EndTurn(); } }
static void StartGame() { manager.SetupGame(); manager.StartAge(); }