Exemplo n.º 1
0
        public void DeterminesMoveForThree()
        {
            var game = new Game("Opponent", 100, 300);

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

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

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

            Assert.AreEqual("BET:1000", game.Move());
        }
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 5
0
        public void RecieveCard()
        {
            var game = new Game("Opponent", 100, 300);

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

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

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