chevron-thin-right chevron-thin-left brand cancel-circle search youtube-icon google-plus-icon linkedin-icon facebook-icon twitter-icon toolbox download check linkedin phone twitter-old google-plus facebook profile-male chat calendar profile-male
0 votes
Hi, currently as far as I know there is no way to Mock protected and private methods/ members with AAA syntax; care to implement it?
________
MKX
asked by nsoonhui (59.1k points)

3 Answers

0 votes
The AAA syntax will support mocking private and protected methods in the up coming version
which will be out in the middle of next week.

Please click the following link to find more information on mocking protected method in our Forum.

Please click the following link to find more information on mocking protected method in our Blog.
answered by ohad (35.4k points)
0 votes
:arrow: If you are using ms-test, you can always use the Visual Studio private accessors (Right Click->Create Private Accessors), and call those.
answered by eli (5.7k points)
0 votes
Unfortunately, Private Accessors are being deprecated and are no longer recommended by Microsoft.
answered by dblack (8.4k points)
...