static void Main(string[] args) { Console.WriteLine("Hello"); LoanApplication tL = new LoanApplication(); tL.amount = 120000; tL.loanPaymentCalculation(); Console.WriteLine("Your payment is: " + tL.payment); }
public void LoanPaymentCacluationTest() { LoanApplication tL = new LoanApplication(); tL.amount = 40000; tL.loanPaymentCalculation(); int testAmount = 40000 / 12; Assert.AreEqual(testAmount, tL.payment, "Error: payment is wrong."); }