Hi There,
Currently I've facing parameters limitation in JustMock,
I've several functions which have more than 9 parameter, (eg: 10 parameters)
When I'm mock my function, up to 9 parameter it is ok to compile, when my functions have 10 or more parameter JustMock give me error. as following
Error 17 Delegate 'Telerik.JustMock.Action2' does not take 10 arguments
Currently I've facing parameters limitation in JustMock,
I've several functions which have more than 9 parameter, (eg: 10 parameters)
When I'm mock my function, up to 9 parameter it is ok to compile, when my functions have 10 or more parameter JustMock give me error. as following
Error 17 Delegate 'Telerik.JustMock.Action2' does not take 10 arguments
sample function//Try to Produce Error of more than 9 Parameters for JustMockvoid GetTestFunc(int param1, int param2, int param3, int param4, int param5,
string sParam6, string sParam7, string sParam8, string sParam9, string sParam10)
{string _nothing= sParam10;}//Inside Test Project Mock.Arrange(()=> GetTestFunc(Arg.AnyInt, Arg.AnyInt,Arg.AnyInt, Arg.AnyInt,Arg.AnyInt, Arg.AnyString,Arg.AnyString,Arg.AnyString,Arg.AnyString,Arg.AnyString)) .DoInstead((int one, int two, int three, int four, int five, string a, string b, string c, string d, string e) => { string _a = e; });