public static Card Next(Random random) { var face = FaceTests.Next(random); var suit = SuitTests.Next(random); return(new Card(face, suit)); }
public void ConstructorShouldWork() { var face = FaceTests.Next(this.random); var suit = SuitTests.Next(this.random); var card = new Card(face, suit); Assert.Equal(face, card.Face); Assert.Equal(suit, card.Suit); }