Ejemplo n.º 1
0
        public void Checkings_account()
        {
            Account checkingsAccount = new Account(Account.CHECKING);
            checkingsAccount.Deposit(100);

            Assert.AreEqual(0.1, checkingsAccount.InterestEarned(), DOUBLE_DELTA);
        }
Ejemplo n.º 2
0
        public void Maxi_savings_account_NoWithDraw()
        {
            Account maxiSavingsAccount = new Account(Account.MAXI_SAVINGS);
            maxiSavingsAccount.Deposit(3000.0);

            Assert.AreEqual(150.0, maxiSavingsAccount.InterestEarned(), DOUBLE_DELTA);
        }
Ejemplo n.º 3
0
        public void Savings_account()
        {
            Account savingsAccount = new Account(Account.SAVINGS);
            savingsAccount.Deposit(1500);

            Assert.AreEqual(2.0, savingsAccount.InterestEarned(), DOUBLE_DELTA);
        }