Esempio n. 1
0
        public static AndConstraint <SingleValueFunctionCallNode> ShouldHaveConstantParameter <TValue>(this SingleValueFunctionCallNode functionCallNode, string name, TValue value)
        {
            functionCallNode.Should().NotBeNull();
            functionCallNode.Parameters.Should().ContainItemsAssignableTo <NamedFunctionParameterNode>();
            var argument = functionCallNode.Parameters.Cast <NamedFunctionParameterNode>().SingleOrDefault(p => p.Name == name);

            argument.Should().NotBeNull();
            argument.Value.ShouldBeConstantQueryNode(value);
            return(new AndConstraint <SingleValueFunctionCallNode>(functionCallNode));
        }