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
Post a Comment