InternalsVisibleTo and class inheritance

295 views Asked by At

I'm using InternalsVisibleTo attribute to make some internal classes visible to the unit test suite.

While it's allowing me to create instances of internal classes, I cannot create a class that inherits from an internal class.

Is this behaviour expected? If it is, there's some other way to achieve what I want?

Edit: As pointed by @Grant Thomas, I did not say what I want. What I want is to create an instance of an abstract internal class. It's not that class I'm testing, but the class I'm testing have it as a dependency.

0

There are 0 answers