示例#1
0
        public void AutoLoanTest()
        {
            AutoLoan myAutoLoan = new AutoLoan("Auto Loan", 1, "Yulia", "Svit", 0.075, 12000, 4, 1966, "Infinity", "2017", "black");

            Assert.AreEqual(2925, myAutoLoan.CalculateInterest());
            Console.WriteLine(myAutoLoan);
        }
示例#2
0
        public void AutoLoan_Test()
        {
            AutoLoan newCarLoan = new AutoLoan(1, "John", "Peterson", 0.075, 12000, 4, 2015, "Taurus",
                                               "Ford", "Blue");

            Assert.AreEqual(2925, newCarLoan.CalculateInterest());
            System.Console.WriteLine(newCarLoan);
        }