public void CurrencyExchangeTest(decimal source, decimal rate, decimal result) { BaseController baseController = new BaseController(); Assert.Equals(source * rate, baseController.CurrencyExchange(source, 1, rate)); }
public void CurrencyExchangeTest(decimal source, decimal rate, decimal result) { BaseController baseController = new BaseController(); Assert.LessOrEqual(Math.Abs(source * rate - baseController.CurrencyExchange(source, 1, rate)), 0.05); }