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

math curriculum

Shipping machine learned systems

Seeings things, simple things