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
Products
Isolator for C++
Isolate ++
Isolator for .NET
Suggest
Isolate
Smart Runner
Coverage – Part of Typemock Isolator Complete .NET
Isolator for Build Server
Download
C++
.NET
Pricing
Resources
Documentation
Isolator++
Isolator
Learning Center
Tutorials
Webinars
Articles
Case Studies
Partners
Blog
Support
C++ Community
.NET Community
Premium Support
Products
Isolator for C++
Isolate ++
Isolator for .NET
Suggest
Isolate
Smart Runner
Coverage – Part of Typemock Isolator Complete .NET
Isolator for Build Server
Download
C++
.NET
Pricing
Resources
Documentation
Isolator++
Isolator
Learning Center
Tutorials
Webinars
Articles
Case Studies
Partners
Blog
Support
C++ Community
.NET Community
Premium Support
Menu
Search
Remember
Register
Typemock Q&A
Ask a question
All Activity
Questions
Hot!
Unanswered
Tags
Users
Ask a Question
The Unit Testing Company
Development Resources
Knowledge Base
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.
Related questions
AAA syntax:ReturnRecursiveFakes not faking private members
AAA syntax: ability to mock inner properties with callorigin
Is there a Mock.AssignField available in AAA syntax?
AAA syntax: How to mock HttpFileCollectionBase
AAA syntax: Unable to mock an element inside Array
Mock protected and private methods/ members with AAA syntax
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
Sep 19, 2008
by
nsoonhui
Report User
(
59.1k
points)
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
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
Sep 19, 2008
by
ohad
Report User
(
35.4k
points)
Please
log in
or
register
to add a comment.
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
Sep 19, 2008
by
eli
Report User
(
5.7k
points)
Please
log in
or
register
to add a comment.
0
votes
Unfortunately, Private Accessors are being deprecated and are no longer recommended by Microsoft.
answered
Jul 23, 2012
by
dblack
Report User
(
8.4k
points)
Please
log in
or
register
to add a comment.
...
×
Choose the product type:
WINDOWS
LINUX DEB
LINUX RMP
×