.Net - Unit Testing Internal Classes

Post date: Mar 3, 2010 8:41:22 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")]