public void DiscardingUnownedCardThrowsException() { var player = new PlayerBuilder().Build(); var unownedCard = new Card(Suite.Blue, Number.Five); player .Invoking(player => player.Discard(unownedCard)) .Should().Throw <InvalidOperationException>(); }
public void DiscardGetsRidOfInformation() { var player = new PlayerBuilder().Build(); var cardToDiscard = player.Cards.First(); player.Discard(cardToDiscard); player.Information.Keys.Should().NotContain(cardToDiscard); }