Beispiel #1
0
 private string PopulateTemplate(Customer customer,
                                 double fixedPayment)
 {
     return(string.Format(LoanTemplate, customer.Name,
                          customer.TotalLoan,
                          customer.Years, _arithmetic.TryRound(fixedPayment, 2)));
 }
Beispiel #2
0
        public void Round_WrongFloatPoint_NoErrorWrongOutput()
        {
            var result = _math.TryRound(2.345, -2);

            Assert.AreEqual(double.NaN, result);
        }