How to test a class member that is not public using Visual Studio 2010

There are various ways to test a Class member which is not public By making the private members public of a class under test Breaks the encapsulation principle API is modified just for the sake of testing By making the private members internal of a class under test and annotate the assembly with internalsVisibleTo attribute…

3