InternalsVisibleTo


Writing unit tests often requires access internal classes and methods of another assembly.

InternalsVisibleTo attribute provides clean way of accomplishing this.
In the target assembly whose internal classes and members need to exposed specify it in the following way.


.[assembly: InternalsVisibleTo("MyUnitTestAssembly,PublicKey=002400000480000094…26e0b3")]

Comments

Popular posts from this blog

How to be inside a movie using Hololens?

math curriculum

Release criterion for systems based on machine learning