Example #1
0
        public void DeterminesMoveForThree()
        {
            var game = new Game("Opponent", 100, 300);

            game.Card(new Card("3"));

            Assert.AreEqual("CALL", game.Move());
        }
Example #2
0
        public void DeterminesMoveForAce()
        {
            var game = new Game("Opponent", 100, 300);

            game.Card(new Card("A"));

            Assert.AreEqual("BET:1000", game.Move());
        }
Example #3
0
        public void CanInitialise()
        {
            var game = new Game("Opponent", 100, 300);

            Assert.AreEqual("Opponent", game.Opponent);
            Assert.AreEqual(100, game.Chips);
            Assert.AreEqual(300, game.HandLimit);
        }
Example #4
0
        public void Start(string opponent_name, int starting_chip_count, int hand_limit)
        {
            Log.Info("");
            Log.Info("");
            Log.InfoFormat("Start: opponent_name = {0}, starting_chip_count = {1}, hand_limit = {2}",
                opponent_name, starting_chip_count, hand_limit);

            game = new Game(opponent_name, starting_chip_count, hand_limit);
        }
Example #5
0
        public void RecieveCard()
        {
            var game = new Game("Opponent", 100, 300);

            Assert.AreEqual(Card.Ace, game.Card(new Card("A")));
        }
Example #6
0
        public void ReceiveButton()
        {
            var game = new Game("Opponent", 100, 300);

            Assert.That(game.ReceiveButton(), Is.True);
        }
Example #7
0
        public void ReceiveBlind()
        {
            var game = new Game("Opponent", 100, 300);

            Assert.That(game.PostBlind(), Is.True);
        }