public void CallCustomCollectionProcessor() { Dictionary<string, object> vars = new Dictionary<string, object>(); vars["myCollProc"] = new MyTestCollectionProcessor(); MethodNode mn = new MethodNode(); mn.Text = "myCollProc"; IExpression exp = mn; int[] input = new int[] {1, 2, 3}; Assert.AreSame(input, exp.GetValue(input, vars)); }
public void CallCustomCollectionProcessor() { Dictionary <string, object> vars = new Dictionary <string, object>(); vars["myCollProc"] = new MyTestCollectionProcessor(); MethodNode mn = new MethodNode(); mn.Text = "myCollProc"; IExpression exp = mn; int[] input = new int[] { 1, 2, 3 }; Assert.AreSame(input, exp.GetValue(input, vars)); }