Exemplo n.º 1
0
        private string ToString(DifferentParametersExpression exp, string function)
        {
            var sb = new StringBuilder();

            sb.Append(function).Append('(');
            if (exp.Arguments != null)
            {
                foreach (var item in exp.Arguments)
                {
                    sb.Append(item).Append(", ");
                }
                sb.Remove(sb.Length - 2, 2);
            }
            sb.Append(')');

            return(sb.ToString());
        }
Exemplo n.º 2
0
 protected void TestDiffParamException(DifferentParametersExpression exp)
 {
     Assert.Throws <DifferentParameterTypeMismatchException>(() => exp.Analyze(analyzer));
 }