Beispiel #1
0
        public void GivenAnSavingsAccountWithdrawShouldFailWhenAmmountExceedBalance()
        {
            BankAccount account = new SavingAccount();
            account.Withdraw(500m);

            Assert.AreEqual(0, account.Balance);
        }
Beispiel #2
0
        public void GivenASavingAccountWithEnoughBalanceWithrawShouldSucceed()
        {
            BankAccount account = new SavingAccount();
            account.Deposit(10m);
            account.Withdraw(5m);

            Assert.AreEqual(5m, account.Balance);
        }