Exemple #1
0
        public void StopPlayingWhen67MoneyLeftTest()
        {
            var bot = new CautiousBot(900);

            bot.TakeMoney(301);

            Assert.AreEqual(0, bot.MakeBets().Count);

            Assert.Pass();
        }
Exemple #2
0
        public void BettingTest()
        {
            var bot = new CautiousBot(900);

            bot.TakeMoney(299);

            Assert.AreNotEqual(0, bot.MakeBets().Count);

            Assert.Pass();
        }
Exemple #3
0
        public void TakeAllMoneyTest()
        {
            var bot = new CautiousBot(900);

            Assert.AreEqual(900, bot.Money);
            Assert.AreEqual(900, bot.TakeMoney(1500));
            Assert.AreEqual(0, bot.Money);

            Assert.Pass();
        }