1

Closed

Unable to handle Generic Reference-Type Parameters

description

I am not sure if this is something that has come up and disregarded for obvious reasons or not, but I figured I would bring it to discussion.

Is there restrictions prohibiting mocking methods with generic reference-type parameters such as the following?

void TestMethodWithGenericRefParameter<T>(string a,ref T b)

When I try to mock one of these, the extension method __GetRealTypeForByRefType() throws an exception because it cannot resolve the type for one reason or another.
Closed Dec 22, 2015 at 5:18 AM by mikwal

comments