It would be nice to have an overload in Foq's
class for supplying optional constructor arguments if the mocked type is a class.
The need for the additional overload emerged by
, a forthcoming AutoFixture extension for Auto-mocking with Foq.
When the mocked type is a class, AutoFixture supplies auto-generated specimens by using the following overloads:
It would be very nice if a similar feature also exists in a future version of Foq.