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