C# – Replacements for private accessors in Visual Studio 2012

cunit testingvisual studio 2012

I startet to migrate a Testproject from VS2010 to 2012.
Now I see that the private accessors are not supported anymore.

I saw this , but is that the only way to fix that?
I don't want to declare the private methods as internal… 🙁

Best Answer

I guess that in your case using using PrivateObjects will help you. To view how to use them, you can view this link: http://akurniaga.wordpress.com/tag/unit-test-privateobject-visual-studio/ . Hope this helps you.