Just Code‎ > ‎

.Net - Unit Testing Internal Classes

posted Mar 3, 2010, 12:41 AM by Peter Henell   [ updated Mar 3, 2010, 12:45 AM ]
Original Poster http://robertsmyth.blogspot.com/2008/03/unit-testing-internal-c-classes.html

In AssemblyInfo.cs add the following attribute to allow the "UnitTests" assembly to use the Internal classes of this assembly.
[assembly: InternalsVisibleTo("UnitTests")]


Comments