Example #1
0
        public void CalculateInterestInvestment()
        {
            float initialBalance = 200;
            float expected       = 210;

            Customer          customer          = new Customer(4, "Allen", "02222222");
            InvestmentAccount investmentAccount = new InvestmentAccount(customer, 5, initialBalance, 5, 20);

            float actual = investmentAccount.CalculateInterest();

            Console.WriteLine("actual " + actual);
            Assert.AreEqual(expected, actual, 0.001);
        }