There was the same message when trying to use Mock.setup for a method layout with several default parameters. I just needed to add additional parameters to the lambda.
void someMethod(string arg1 = "", string arg2 = "") mockedObject.Setup(x => x.someMethod(It.IsAny<string>(), It.IsAny<string>()))
ds4940 11 Oct '17 at 13:13 2017-10-11 13:13
source share