Oct 28, 2009 ˇ I'm getting a parameter count mismatch. I've had to write this because of problems with multiple threads and unsafe updates.
Mar 27, 2017 ˇ The only possibility is that Count is an extension method. Extension method seems like they can be called on an object. But as you may know, ...
Oct 14, 2019 ˇ Getting "Parameter count mismatch" for no reason ˇ Have you tried using It. ˇ Have you tried renaming the second method of your interface ?
Aug 5, 2015 ˇ I'm pretty sure this is because your object type has an indexer "property" and you are passing null to the index parameter on the GetValue ...
Dec 7, 2017 ˇ My solution is to pass Array to HasData function, not generic List . If you use List, try to convert array with ToArray function.
Jun 25, 2019 ˇ Some properties have an index parameter so property.GetValue(obj, null) will throw the 'parameter mismatch' error for those.
Jan 22, 2016 ˇ If I run this i get a Parameter Count Mismatch exception on the method.invoke line, but i am confused because if i bring in the two uncommented ...
Jul 25, 2017 ˇ I am having problems when performing the invoke (see below), the exception parameter count mismatch is thrown. The method "getDataFromDatabase" is returning a ...
Aug 21, 2015 ˇ The easiest thing would be just to skip the indexer. You can test if a property is an indexer by using property.GetIndexParameters().Any() . I ...
Oct 10, 2011 ˇ I'm tring to use a lambda with a multiple-params function but Moq throws this exception at runtime when I attempt to call the mock.Object.