public void DispatchBool_ReturnsCorrect_Less(bool expected) { var node = GetLessExp(); IBooleanHelper boolHelper = GetBooleanHelper(); boolHelper.LessBoolean(Arg.Any <LessExpression>(), Arg.Any <List <object> >()) .Returns(expected); DispatchBool_ReturnsCorrect(node, boolHelper, expected); }
public void DispatchBool_Less_PassParametersDown(object o) { var parameters = GetParameterList(); var node = GetLessExp(); IBooleanHelper boolHelper = GetBooleanHelper(); List <object> res = null; boolHelper.LessBoolean(Arg.Any <LessExpression>(), Arg.Do <List <object> >(x => res = x)) .Returns(true); var interpreter = Utilities.GetIntepreterOnlyWith(boolHelper); interpreter.DispatchBoolean(node, parameters.ToList()); res.Should().BeEquivalentTo(parameters); }