Rabu, 09 Maret 2011
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 publicBy making the private members public of a class under test Breaks the encapsulation principleAPI is modified just for the sake of testingBy making the private members internal of a class under test and annotate the assembly with internalsVisibleTo attribute and you can read more about it at http://msdn.microsoft.com/en-us/library/
Langganan:
Posting Komentar (Atom)
Tidak ada komentar:
Posting Komentar