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
Welcome to Typemock Community! Here you can ask and receive answers from other community members. If you liked or disliked an answer or thread: react with an up- or downvote.
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 (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 (35.5k 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 (5.1k points)
0 votes
Unfortunately, Private Accessors are being deprecated and are no longer recommended by Microsoft.
answered by (8.4k points)
...