Esempio n. 1
0
 public static Game HearthsFlush()
 {
     return(new Game(
                CardBuilder.Three().Hearths(),
                CardBuilder.Ace().Hearths(),
                CardBuilder.Four().Hearths(),
                CardBuilder.Ten().Hearths(),
                CardBuilder.Queen().Hearths()));
 }
            public void WrapAround()
            {
                // ARRANGE
                var game = new Game(
                    CardBuilder.King().Hearths(),
                    CardBuilder.Ace().Hearths(),
                    CardBuilder.Two().Hearths(),
                    CardBuilder.Three().Hearths(),
                    CardBuilder.Four().Hearths());

                // ACT
                var result = new StraightFlush().Evaluate(game);

                // ASSERT
                Assert.IsFalse(result.Success());
            }