Ejemplo n.º 1
0
        public void OverdraftAccCheckBalanceTest()
        {
            Overdraft_account acc     = new Overdraft_account(1111, 1111, 1000, DateTime.Now);
            double            balance = acc.CheckBalance();

            Assert.AreEqual(1000, balance);
        }
Ejemplo n.º 2
0
        public void OverdraftAccAccrueTest()
        {
            double            balance = 1000;
            Overdraft_account acc     = new Overdraft_account(1111, 1111, balance, DateTime.Now);

            balance -= acc.AccruePercent(new DateTime(2013, 12, 12));
            Assert.AreEqual(balance, acc.CheckBalance());
        }
Ejemplo n.º 3
0
        public void OverdraftAccWithdrawTest()
        {
            double            balance = 1000;
            Overdraft_account acc     = new Overdraft_account(1111, 1111, balance, DateTime.Now);

            balance -= acc.Withdraw(DateTime.Now, 200);
            Assert.AreEqual(balance, acc.CheckBalance());
        }
Ejemplo n.º 4
0
        public void OverdraftAccDepositTest()
        {
            double            balance = 1000;
            Overdraft_account acc     = new Overdraft_account(1111, 1111, balance, DateTime.Now);

            acc.Deposit(1000);
            Assert.AreEqual(balance + 1000, acc.CheckBalance());
        }
Ejemplo n.º 5
0
        public void OverdraftAccCreatingTest()
        {
            Overdraft_account acc = new Overdraft_account(1111, 1111, 0, DateTime.Now);

            Assert.AreNotEqual(null, acc);
        }