public void UserDefinedFunctionExecute7Test() { mockUDFProxy.Setup(m => m.Apply(It.IsAny <IColumnProxy[]>())); UserDefinedFunction <int> udf = new UserDefinedFunction <int>(mockUDFProxy.Object); Column column1 = GeneratorColum(); Column column2 = GeneratorColum(); Column column3 = GeneratorColum(); Column column4 = GeneratorColum(); Column column5 = GeneratorColum(); Column column6 = GeneratorColum(); Column column7 = GeneratorColum(); udf.Execute7(column1, column2, column3, column4, column5, column6, column7); mockUDFProxy.Verify(m => m.Apply(new IColumnProxy[] { column1.ColumnProxy, column2.ColumnProxy, column3.ColumnProxy, column4.ColumnProxy, column5.ColumnProxy, column6.ColumnProxy, column7.ColumnProxy }), Times.Once); }
public void UserDefinedFunctionExecute7Test() { mockUDFProxy.Setup(m => m.Apply(It.IsAny<IColumnProxy[]>())); UserDefinedFunction<int> udf = new UserDefinedFunction<int>(mockUDFProxy.Object); Column column1 = GeneratorColum(); Column column2 = GeneratorColum(); Column column3 = GeneratorColum(); Column column4 = GeneratorColum(); Column column5 = GeneratorColum(); Column column6 = GeneratorColum(); Column column7 = GeneratorColum(); udf.Execute7(column1, column2, column3, column4, column5, column6, column7); mockUDFProxy.Verify(m => m.Apply(new IColumnProxy[] { column1.ColumnProxy, column2.ColumnProxy, column3.ColumnProxy, column4.ColumnProxy, column5.ColumnProxy, column6.ColumnProxy,column7.ColumnProxy}), Times.Once); }