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()); }
protected void TestDiffParamException(DifferentParametersExpression exp) { Assert.Throws <DifferentParameterTypeMismatchException>(() => exp.Analyze(analyzer)); }