public void FunctionFromReflection()
        {
            //create a custom function
            TransformFunction function1 = new TransformFunction(this, this.GetType().GetMethod("TestMethod"), null, new TableColumn("test"), null);

            Assert.True((Int32)function1.RunFunction(new object[] { 6, 2 }) == 8);
        }
        public void FunctionFromDelegate()
        {
            //create a custom function
            TransformFunction function1 = new TransformFunction(new Func <int, int, int>((i, j) => i + j), new TableColumn[] { new TableColumn("value1"), new TableColumn("value2") }, new TableColumn("Add"), null);

            Assert.True((Int32)function1.RunFunction(new object[] { 6, 2 }) == 8);
        }