Esempio n. 1
0
        public void Fixed_Monthly_Payment_should_Work(decimal totalLoan, decimal interest, int years, decimal expected)
        {
            var result = MortgageMath.FixedMonthlyPayment(totalLoan, interest, years);

            Assert.AreEqual(expected, result);
        }
Esempio n. 2
0
        public void Power_Of_Integer_should_Work()
        {
            var result = MortgageMath.Power(2, 2);

            Assert.AreEqual(4, result);
        }