public void Compute_For_Zero_Interest() { Credit credit = new Credit(40000, 0, 240); decimal payment = credit.GetPaymentForMonth(51); Assert.AreEqual(166.67, (double)Decimal.Round(payment, 2)); }
public void Compute_For_Less_Than_A_Months() { Credit credit = new Credit(40000, 7.57, 0); decimal payment = credit.GetPaymentForMonth(0); Assert.AreEqual(40000, (double)Decimal.Round(payment, 2)); }
public void Compute_For_Zero_Credit() { Credit credit = new Credit(0, 7.57, 240); decimal payment = credit.GetPaymentForMonth(51); Assert.AreEqual(0, (double)Decimal.Round(payment, 2)); }
public void Compute_For_3rd_Month_Of_4th_Year() { Credit credit = new Credit(40000, 7.57, 240); decimal payment = credit.GetPaymentForMonth(51); Assert.AreEqual(366.43, (double)Decimal.Round(payment, 2)); }