예제 #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);
        }