예제 #1
0
        public void TestIfWalletIsEmpty()
        {
            Betting bet = new Betting
            {
                ComputerWallet = -100
            };

            Assert.AreEqual(bet.CheckSolvency(), false);
        }
예제 #2
0
        public void TestIfWalletIsNotEmpty()
        {
            Betting bet = new Betting
            {
                ComputerWallet = 100,
                PlayerWallet   = 100
            };

            Assert.AreEqual(bet.CheckSolvency(), true);
        }