Unit Test Non-Public Methods and Classes

added by DotNetKicks
1/9/2017 5:41:16 PM

2 Kicks, 638 Views

You often want to unit test non-public methods and classes in .NET, but you don't want to make them public. The most common solution is to make the methods and classes internal and access them from your unit test project using the InternalsVisibleTo attribute.


0 comments