示例#1
0
        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);
        }
示例#2
0
        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);
        }