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
Replacing an existing DoInstead and resetting calls
DoInstead Supported For Protected Methods in Derived Class?
Event scope on DoInstead
Exception when stub DateTime.Now from inside a DoInstead()
Isolated behavior lost in DoInstead blocks?
DoInstead
0
votes
I have used AAA DoInstead method to mock a generic call but when my MockdMethod( TypeMock.MethodCallContext context ) is called I cannot read the context to find out what generics were used when the mocked method was called.
To accomplish this I used to pass the TypeMock.MockMethodCalledEventHandler to the return value for the mocked object. When I try to send that type to the Isolate.WhenCalled( ... ).WillReturn( new MockMethodCalledEventHandler( ... ) ); it blows up.
Please Help
-Tom
asked
May 14, 2009
by
trp
Report User
(
4.1k
points)
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
1
Answer
0
votes
Hi Tom,
I'm not exactly sure I understand the entire flow you went through. Can you post the test code here?
Thanks,
Doron
Typemock Support
answered
May 15, 2009
by
doron
Report User
(
17.2k
points)
Please
log in
or
register
to add a comment.
...
Typemock for Enterprise
Struggling with legacy code?
Let’s solve it together
Name
(Required)
First
Last
Email
(Required)
CAPTCHA
Email
This field is for validation purposes and should be left unchanged.
Δ
×
×
Choose the product type:
WINDOWS
LINUX DEB
LINUX RMP
×
Notifications