示例#1
0
        public void PresentValueEnd()
        {
            decimal actual = LoanFunctions.PresentValue(rate, periods, periods, monthlyPayment, futureValue, type);

            Assert.AreEqual(futureValue, actual);
        }
示例#2
0
        public void PresentValueMid()
        {
            double actual = LoanFunctions.PresentValue(rate, periods, 42, monthlyPayment, futureValue, type);

            Assert.AreEqual(midValue, actual);
        }