public void TestDepositSavings1() { SavingsAccount acc = new SavingsAccount(1120002895, Convert.ToDecimal(1000.000000000), "Nmae", DateTime.Now); decimal amount = 500000; decimal expected = acc.AvailableBalance + amount; acc.CreditAccount(amount); decimal actual = acc.AvailableBalance; Assert.AreEqual(actual, expected); }
public void TestDepositSavings2() { SavingsAccount acc = new SavingsAccount(1120002895, Convert.ToDecimal(1000.000000000), "Nmae", DateTime.Now); decimal amount = -1; acc.CreditAccount(amount); }