public void RounddownShouldReturnCorrectResultWithPositiveNumber()
 {
     var func = new Rounddown();
     var args = FunctionsHelper.CreateArgs(9.999, 2);
     var result = func.Execute(args, _parsingContext);
     Assert.AreEqual(9.99, result.Result);
 }
 public void RounddownShouldHandleZeroNumDigits()
 {
     var func = new Rounddown();
     var args = FunctionsHelper.CreateArgs(999.999, 0);
     var result = func.Execute(args, _parsingContext);
     Assert.AreEqual(999d, result.Result);
 }
 public void RounddownShouldReturn0IfNegativeNumDigitsIsTooLarge()
 {
     var func = new Rounddown();
     var args = FunctionsHelper.CreateArgs(999.999, -4);
     var result = func.Execute(args, _parsingContext);
     Assert.AreEqual(0d, result.Result);
 }
 public void RounddownShouldHandleNegativeNumber()
 {
     var func = new Rounddown();
     var args = FunctionsHelper.CreateArgs(-9.999, 2);
     var result = func.Execute(args, _parsingContext);
     Assert.AreEqual(-9.99, result.Result);
 }