public void SetUp()
 {
     _handHistory = new HandHistory()
     {
         CommunityCards =
             BoardCards.ForFlop(Card.GetCardFromIntValue(5), Card.GetCardFromIntValue(14),
                                Card.GetCardFromIntValue(40)),
         DateOfHandUtc        = new DateTime(2012, 3, 20, 12, 30, 44),
         DealerButtonPosition = 5,
         FullHandHistoryText  = "some hand text",
         GameDescription      =
             new GameDescriptor(PokerFormat.CashGame,
                                SiteName.PartyPoker,
                                GameType.NoLimitHoldem,
                                Limit.FromSmallBlindBigBlind(10, 20, Currency.USD),
                                TableType.FromTableTypeDescriptions(TableTypeDescription.Regular),
                                SeatType.FromMaxPlayers(6)),
         HandActions = new List <HandAction>()
         {
             new HandAction("Player1", HandActionType.POSTS, 0.25m, Street.Preflop)
         },
         HandId           = HandID.From(141234124),
         NumPlayersSeated = 2,
         Players          = new PlayerList()
         {
             new Player("Player1", 1000, 1),
             new Player("Player2", 300, 5),
         },
         TableName = "Test Table",
     };
 }
        public void PlayerNameWithSlashesAndSquareBrackets()
        {
            HandHistory expectedHand = new HandHistory()
            {
                GameDescription = new GameDescriptor()
                {
                    PokerFormat = PokerFormat.CashGame,
                    GameType    = GameType.NoLimitHoldem,
                    Limit       = Limit.FromSmallBlindBigBlind(0.25m, 0.50m, Currency.USD),
                    SeatType    = SeatType.FromMaxPlayers(6),
                    Site        = SiteName.PokerStars,
                    TableType   = TableType.FromTableTypeDescriptions(TableTypeDescription.Cap)
                },
                DateOfHandUtc        = new DateTime(2012, 9, 11, 12, 39, 12),
                DealerButtonPosition = 3,
                HandId           = HandID.From(86015904171),
                NumPlayersSeated = 4,
                TableName        = "Acamar IV CAP, Fast,20-50 bb"
            };

            var expectedActions = new List <HandAction>()
            {
                new HandAction("vitinja", HandActionType.SMALL_BLIND, 0.25m, Street.Preflop),
                new HandAction("/\\ntiHer[]", HandActionType.BIG_BLIND, 0.50m, Street.Preflop),
                new HandAction("Catharina111", HandActionType.CALL, 0.50m, Street.Preflop),
                new HandAction("Willo2319", HandActionType.CALL, 0.50m, Street.Preflop),
                new HandAction("vitinja", HandActionType.FOLD, 0m, Street.Preflop),
                new HandAction("/\\ntiHer[]", HandActionType.CHECK, 0, Street.Preflop),
                new HandAction("/\\ntiHer[]", HandActionType.BET, 1, Street.Flop),
                new HandAction("Catharina111", HandActionType.FOLD, 0m, Street.Flop),
                new HandAction("Willo2319", HandActionType.CALL, 1m, Street.Flop),
                new HandAction("/\\ntiHer[]", HandActionType.BET, 1.50m, Street.Turn),
                new HandAction("Willo2319", HandActionType.CALL, 1.50m, Street.Turn),
                new HandAction("/\\ntiHer[]", HandActionType.CHECK, 0m, Street.River),
                new HandAction("Willo2319", HandActionType.CHECK, 0m, Street.River),
                new HandAction("/\\ntiHer[]", HandActionType.SHOW, 0m, Street.Showdown),
                new HandAction("Willo2319", HandActionType.SHOW, 0m, Street.Showdown),
            };

            var expectedWinners = new List <WinningsAction>()
            {
                new WinningsAction("Willo2319", WinningsActionType.WINS, 6.45m, 0),
            };

            HandHistory actualHand = TestFullHandHistory(expectedHand, "PlayerNameWithSlashesAndSquareBrackets");

            Assert.AreEqual(expectedActions, actualHand.HandActions);
            Assert.AreEqual(expectedWinners, actualHand.Winners);
        }
        public void PlayerWithColon()
        {
            HandHistorySummary expectedSummary = new HandHistorySummary()
            {
                GameDescription = new GameDescriptor()
                {
                    PokerFormat = PokerFormat.CashGame,
                    GameType    = GameType.NoLimitHoldem,
                    Limit       = Limit.FromSmallBlindBigBlind(0.10m, 0.25m, Currency.USD),
                    SeatType    = SeatType.FromMaxPlayers(9),
                    Site        = SiteName.PokerStars,
                    TableType   = TableType.FromTableTypeDescriptions(TableTypeDescription.Regular)
                },
                DateOfHandUtc        = new DateTime(2012, 7, 18, 16, 25, 8),
                DealerButtonPosition = 9,
                HandId           = HandID.From(83504515230),
                NumPlayersSeated = 9,
                TableName        = "Hygiea IV 40-100 bb"
            };

            TestFullHandHistorySummary(expectedSummary, "PlayerWithColon");
        }
        public void ZoomHand()
        {
            HandHistorySummary expectedSummary = new HandHistorySummary()
            {
                GameDescription = new GameDescriptor()
                {
                    PokerFormat = PokerFormat.CashGame,
                    GameType    = GameType.PotLimitOmaha,
                    Limit       = Limit.FromSmallBlindBigBlind(1m, 2m, Currency.USD),
                    SeatType    = SeatType.FromMaxPlayers(6),
                    Site        = SiteName.PokerStars,
                    TableType   = TableType.FromTableTypeDescriptions(TableTypeDescription.Zoom)
                },
                DateOfHandUtc        = new DateTime(2014, 2, 21, 17, 45, 8),
                DealerButtonPosition = 1,
                HandId           = HandID.From(132630000000),
                NumPlayersSeated = 6,
                TableName        = "Diotima"
            };

            TestFullHandHistorySummary(expectedSummary, "ZoomHand");
        }
        public void MucksHand()
        {
            HandHistory expectedHand = new HandHistory()
            {
                GameDescription = new GameDescriptor()
                {
                    PokerFormat = PokerFormat.CashGame,
                    GameType    = GameType.PotLimitOmahaHiLo,
                    Limit       = Limit.FromSmallBlindBigBlind(0.05m, 0.10m, Currency.USD),
                    SeatType    = SeatType.FromMaxPlayers(6),
                    Site        = SiteName.PokerStars,
                    TableType   = TableType.FromTableTypeDescriptions(TableTypeDescription.Regular)
                },
                DateOfHandUtc        = new DateTime(2012, 9, 11, 7, 51, 48),
                DealerButtonPosition = 4,
                HandId           = HandID.From(86008517721),
                NumPlayersSeated = 6,
                TableName        = "Muscida V 40-100 bb"
            };

            HandHistory actualHand = TestFullHandHistory(expectedHand, "MucksHand");
        }
        public void TableNameWithDash()
        {
            HandHistorySummary expectedSummary = new HandHistorySummary()
            {
                GameDescription = new GameDescriptor()
                {
                    PokerFormat = PokerFormat.CashGame,
                    GameType    = GameType.PotLimitOmaha,
                    Limit       = Limit.FromSmallBlindBigBlind(25.0m, 50.00m, Currency.USD),
                    SeatType    = SeatType.FromMaxPlayers(2),
                    Site        = SiteName.PokerStars,
                    TableType   = TableType.FromTableTypeDescriptions(TableTypeDescription.Regular)
                },
                DateOfHandUtc        = new DateTime(2011, 5, 19, 00, 41, 04),
                DealerButtonPosition = 1,
                HandId           = HandID.From(62279382715),
                NumPlayersSeated = 2,
                TableName        = "Isildur's PLO 50"
            };

            TestFullHandHistorySummary(expectedSummary, "TableNameWithDash");
        }
        public void DateIssue2()
        {
            HandHistorySummary expectedSummary = new HandHistorySummary()
            {
                GameDescription = new GameDescriptor()
                {
                    PokerFormat = PokerFormat.CashGame,
                    GameType    = GameType.NoLimitHoldem,
                    Limit       = Limit.FromSmallBlindBigBlind(1.0m, 2.00m, Currency.USD),
                    SeatType    = SeatType.FromMaxPlayers(9),
                    Site        = SiteName.PokerStars,
                    TableType   = TableType.FromTableTypeDescriptions(TableTypeDescription.Cap)
                },
                DateOfHandUtc        = new DateTime(2011, 5, 10, 11, 27, 21),
                DealerButtonPosition = 1,
                HandId           = HandID.From(61910233643),
                NumPlayersSeated = 7,
                TableName        = "Toutatis III"
            };

            TestFullHandHistorySummary(expectedSummary, "DateIssue2");
        }
        public void DateIssue1()
        {
            HandHistorySummary expectedSummary = new HandHistorySummary()
            {
                GameDescription = new GameDescriptor()
                {
                    PokerFormat = PokerFormat.CashGame,
                    GameType    = GameType.NoLimitHoldem,
                    Limit       = Limit.FromSmallBlindBigBlind(0.50m, 1.00m, Currency.USD),
                    SeatType    = SeatType.FromMaxPlayers(6),
                    Site        = SiteName.PokerStars,
                    TableType   = TableType.FromTableTypeDescriptions(TableTypeDescription.Regular)
                },
                DateOfHandUtc        = new DateTime(2011, 5, 7, 3, 51, 38),
                DealerButtonPosition = 4,
                HandId           = HandID.From(61777648755),
                NumPlayersSeated = 4,
                TableName        = "Tezcatlipoca III"
            };

            TestFullHandHistorySummary(expectedSummary, "DateIssue1");
        }
Пример #9
0
        public void HandIssue1()
        {
            HandHistory expectedSummary = new HandHistory()
            {
                GameDescription = new GameDescriptor()
                {
                    PokerFormat = PokerFormat.CashGame,
                    GameType    = GameType.NoLimitHoldem,
                    Limit       = Limit.FromSmallBlindBigBlind(5m, 10m, Currency.USD),
                    SeatType    = SeatType.FromMaxPlayers(6),
                    Site        = SiteName.IPoker,
                    TableType   = TableType.FromTableTypeDescriptions(TableTypeDescription.Regular)
                },
                DateOfHandUtc        = new DateTime(2014, 1, 1, 22, 50, 13),
                DealerButtonPosition = 1,
                HandId           = HandID.From(987654),
                NumPlayersSeated = 5,
                TableName        = "Andreapol__No_DP_"
            };

            TestFullHandHistorySummary(expectedSummary, "DataMinerHandIssue1");
        }
        public void ShowsDownSingleCard()
        {
            HandHistory expectedHand = new HandHistory()
            {
                GameDescription = new GameDescriptor()
                {
                    PokerFormat = PokerFormat.CashGame,
                    GameType    = GameType.FixedLimitHoldem,
                    Limit       = Limit.FromSmallBlindBigBlind(1m, 2m, Currency.USD),
                    SeatType    = SeatType.FromMaxPlayers(6),
                    Site        = SiteName.PokerStars,
                    TableType   = TableType.FromTableTypeDescriptions(TableTypeDescription.Regular)
                },
                DateOfHandUtc        = new DateTime(2012, 9, 11, 4, 15, 11),
                DealerButtonPosition = 1,
                HandId           = HandID.From(86005187865),
                NumPlayersSeated = 6,
                TableName        = "Stavropolis III 40-100 bb"
            };

            HandHistory actualHand = TestFullHandHistory(expectedHand, "ShowsDownSingleCard");

            Assert.IsTrue(actualHand.Players["Zaza5573"].hasHoleCards);
        }