Why is Private Accessor deprecated?
Posted
by
user3918598
on Stack Overflow
See other posts from Stack Overflow
or by user3918598
Published on 2014-08-18T16:18:47Z
Indexed on
2014/08/18
16:21 UTC
Read the original article
Hit count: 152
It used to be the number one reason for us to choose MSTest from others that we could access and test private methods. Now that Private accessors are deprecated in Visual Studio 2012. Does anyone know why Microsoft make such decision? Is it because it's not a good practice to test private methods?
Also, if I still need to unit test my private methods, how could I do that in VS 2012 and later versions?
© Stack Overflow or respective owner