Ejemplo n.º 1
0
 static void Main(string[] args)
 {
     Console.WriteLine("Hello");
     LoanApplication tL = new LoanApplication();
     tL.amount = 120000;
     tL.loanPaymentCalculation();
     Console.WriteLine("Your payment is: " + tL.payment);
 }
Ejemplo n.º 2
0
 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.");
 }