public void DispatchBool_ReturnsCorrect_Or(bool expected)
        {
            var            node       = GetOrExp();
            IBooleanHelper boolHelper = GetBooleanHelper();

            boolHelper.OrBoolean(Arg.Any <OrExpression>(), Arg.Any <List <object> >())
            .Returns(expected);

            DispatchBool_ReturnsCorrect(node, boolHelper, expected);
        }
        public void DispatchBool_Or_PassParametersDown(object o)
        {
            var parameters = GetParameterList();
            var node       = GetOrExp();

            IBooleanHelper boolHelper = GetBooleanHelper();
            List <object>  res        = null;

            boolHelper.OrBoolean(Arg.Any <OrExpression>(), Arg.Do <List <object> >(x => res = x))
            .Returns(true);

            var interpreter = Utilities.GetIntepreterOnlyWith(boolHelper);

            interpreter.DispatchBoolean(node, parameters.ToList());

            res.Should().BeEquivalentTo(parameters);
        }