예제 #1
0
        public void HomeLoanTest()
        {
            HomeLoan myHomeLoan = new HomeLoan("Home Loan", 1, "Yulia", "Svit", 0.035, 210000, 30, "7055 North", 1999, "18 sq foot");

            Assert.AreEqual(3010, myHomeLoan.CalculateInterest());
            Console.WriteLine(myHomeLoan);
        }
예제 #2
0
        public void HomeLoan_Test()
        {
            HomeLoan newHomeLoan = new HomeLoan(1, "John", "Peterson", 0.035, 210000, 30, "123 Street, Somewhere", 2015, 90);

            Assert.AreEqual(3010, newHomeLoan.CalculateInterest());
            System.Console.WriteLine(newHomeLoan);
        }