public void MinusWithDecimalPointFromObject(string input, string argument, decimal expectedResult) { var inputA = NumberValue.Create(input); var inputB = new FilterArguments(StringValue.Create(argument)); var context = new TemplateContext(); var result = NumberFilters.Minus(inputA, inputB, context); Assert.Equal(expectedResult, result.Result.ToNumberValue()); }
public void Minus() { var input = NumberValue.Create(6); var arguments = new FilterArguments(3); var context = new TemplateContext(); var result = NumberFilters.Minus(input, arguments, context); Assert.Equal(3, result.ToNumberValue()); }