Example #1
0
        public static Card Next(Random random)
        {
            var face = FaceTests.Next(random);
            var suit = SuitTests.Next(random);

            return(new Card(face, suit));
        }
Example #2
0
        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);
        }