Ejemplo n.º 1
0
        public void GetBlindsTest()
        {
            HandConverter converter = new HandConverter(hand);
            string        expected  = "20/40";

            string actual = converter.GetBlinds();

            Assert.AreEqual(actual, expected);
        }
Ejemplo n.º 2
0
        public void GetBalancesTest()
        {
            HandConverter converter = new HandConverter(hand);
            string        expected  = "kszwenk 1065,Kreuz10 435";

            string actual = converter.GetPlayersBalances();

            Assert.AreEqual(actual, expected);
        }
Ejemplo n.º 3
0
        public void GetUsernameTest()
        {
            HandConverter converter = new HandConverter(hand);
            string        expected  = "Kreuz10";

            string actual = converter.GetUserName(1);

            Assert.AreEqual(actual, expected);
        }
Ejemplo n.º 4
0
        public void RemoveCardsTest()
        {
            HandConverter converter = new HandConverter(hand);
            string        turn      = @" [9c 9s 3c] [4h]
kszwenk: checks 
Kreuz10: checks ";
            string        expected  = @" 
kszwenk: checks 
Kreuz10: checks ";

            string actual = converter.RemoveCardsFromAction(turn);

            Assert.AreEqual(actual, expected);
        }
Ejemplo n.º 5
0
        public void GetCardsTest()
        {
            HandConverter converter = new HandConverter(hand);
            List <string> expected  = new List <string>();

            expected.Add("\r\n" + "[flop]" + "\r\n" + "Cards = " + "9c, 9s, 3c");
            expected.Add("\r\n" + "[turn]" + "\r\n" + "Cards = " + "4h");
            expected.Add("\r\n" + "[river]" + "\r\n" + "Cards = " + "9d");

            List <string> actual = converter.GetStreetCards();

            Assert.AreEqual(actual[0], expected[0]);
            Assert.AreEqual(actual[1], expected[1]);
            Assert.AreEqual(actual[2], expected[2]);
        }