Пример #1
0
        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>();
        }
Пример #2
0
        public void DiscardGetsRidOfInformation()
        {
            var player = new PlayerBuilder().Build();

            var cardToDiscard = player.Cards.First();

            player.Discard(cardToDiscard);

            player.Information.Keys.Should().NotContain(cardToDiscard);
        }