private void PickCardBtn_Click(object sender, EventArgs e) { if (_player is CardDicePlayer) { var pl = _player as CardDicePlayer; } if (_player is CardPlayer) { var pl = _player as CardPlayer; _gameService.PickCard(pl); } if (_player is DicePlayer) { } DeckCards.Text = _gameService.GetRemainingCards().ToString(); }
public void CardPlayer_Can_PickCard() { _deckersMeeting.PickCard(_cardPlayer); Assert.IsTrue(_cardPlayer.OpenCards().Any()); }