florinn/typemoq

It.isAnyObject() for objects that only have constructor with arguments

Opened this issue · 0 comments

It seems that It.isAnyObject() only works for objects that have a way to be constructed without arguments. Is it possible to make it work for constructors that require arguments, too?

I've tried changing the signature of It.isAnyObject() to accept a CtorWithArgs<T> instead and it seemed to work but I'm not sure if that doesn't have side effects.