コード例 #1
0
        public void OverDraftFeeTest()
        {
            BankClass acct = new BankClass();

            acct.WithdrawalMoney(7);
            double bal = acct.GetBalance();

            Assert.AreEqual(-12, bal);
        }
コード例 #2
0
        public void DepositAndGetAcctBalance()
        {
            BankClass acct = new BankClass();

            acct.DepositMoney(5);
            double bal = acct.GetBalance();

            Assert.AreEqual(5, bal);
        }
コード例 #3
0
        public void TestDepositAndWithdrawlRegular()
        {
            BankClass acct = new BankClass();

            acct.DepositMoney(13);
            acct.WithdrawalMoney(2);
            double bal = acct.GetBalance();

            Assert.AreEqual(11, bal);
        }
コード例 #4
0
        public void TestDepositAndWithdrawlForOverDraft()
        {
            BankClass acct = new BankClass();

            acct.DepositMoney(1);
            acct.WithdrawalMoney(2);
            double bal = acct.GetBalance();

            Assert.AreEqual(-6, bal);
        }
コード例 #5
0
        public void WithdrawAndGetAcctBal()
        {
            BankClass acct = new BankClass();

            acct.DepositMoney(5);
            acct.WithdrawalMoney(5);
            double bal = acct.GetBalance();

            Assert.AreEqual(0, bal);
        }