public void MortgagePaymentWithDownPaymentAndTaxesTest() { MortgageModel model = new MortgageModel(259000, 4, 30, 2000, 300); MortgagePayment payment = new MortgagePayment(model); double mp = payment.Algorithm(); Assert.Equal(1526.96, mp); }
public void MortgagePaymentWithNoDownPaymentAndNoTaxesTest() { MortgageModel model = new MortgageModel(259000, 4, 30, 0, 0); MortgagePayment payment = new MortgagePayment(model); double mp = payment.Algorithm(); Assert.Equal(1236.51, mp); }