public static Game HearthsFlush() { return(new Game( CardBuilder.Three().Hearths(), CardBuilder.Ace().Hearths(), CardBuilder.Four().Hearths(), CardBuilder.Ten().Hearths(), CardBuilder.Queen().Hearths())); }
public void FullHouse() { // ARRANGE var game = new Game( CardBuilder.Queen().Hearths(), CardBuilder.Queen().Diamonds(), CardBuilder.Four().Clubs(), CardBuilder.Queen().Spades(), CardBuilder.Four().Hearths()); // ACT new GameEvaluator().Evaluate(game); // ASSERT Assert.AreEqual(GameCategory.FULL_HOUSE, game.Category); }
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()); }