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 ReceiveInformationWithNumberThrowsForNoCardsAffected() { var player = new PlayerBuilder { Cards = Enumerable.Empty <Card>(), }.Build(); player .Invoking(p => p.ReceiveInformation(Number.One)) .Should() .Throw <InvalidOperationException>(); }