Given the sample method signature in the interface IBlah
void Varargs(params object[] args);
One would expect the following expectation
dynamicMock.Expect(new IsTypeOf(typeof(string)), 123);
to be verified if we executed the following
IBlah mo = (IBlah) dynamicMock.Object;
mo.Varargs("123", 123);
dynamicMock.Verify();
But instead, the Verify() call fails complaining that
DotNetMock expects 1 argument of type Object[] but
received 2 instead.
This error makes sense if we look at the IL, etc. But
from a usage standpoint is surprising. It would be
better if we detected the final params array and mapped
the final predicates to each element of the params
array elements, so that the above code would work.