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