urasandesu / Prig

Prig is a lightweight framework for test indirections in .NET Framework.
Other
117 stars 21 forks source link

Could Prig auto-generate delegate types? #82

Closed poizan42 closed 7 years ago

poizan42 commented 7 years ago

Currently you have to manually add delegate types if you have method signatures that doesn't match any of the predefined delegates. Since Prig autogenerates code anyways couldn't it just automatically generate whatever delegate types that are necessary?

urasandesu commented 7 years ago

I can't understand what you want, sorry...

By the way, about the former, I have already known that JustMock has such API. However, I think that the way is not good because it is not type-safe against the non-public method.