Beispiel #1
0
        public void FourOfAKind()
        {
            // ARRANGE
            var game = new Game(
                CardBuilder.Two().Hearths(),
                CardBuilder.Two().Clubs(),
                CardBuilder.Seven().Hearths(),
                CardBuilder.Two().Diamonds(),
                CardBuilder.Two().Spades());

            // ACT
            new GameEvaluator().Evaluate(game);

            // ASSERT
            Assert.AreEqual(GameCategory.FOUR_OF_A_KIND, game.Category);
        }
Beispiel #2
0
        public void StraightFlush()
        {
            // ARRANGE
            var game = new Game(
                CardBuilder.Eight().Hearths(),
                CardBuilder.Seven().Hearths(),
                CardBuilder.Nine().Hearths(),
                CardBuilder.Ten().Hearths(),
                CardBuilder.Jack().Hearths());

            // ACT
            new GameEvaluator().Evaluate(game);

            // ASSERT
            Assert.AreEqual(GameCategory.STRAIGHT_FLUSH, game.Category);
        }