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
New check method for comparing to an object
Exception for this non-fake but not this non-fake
How to fake a non- public method with an out parameter?
Isolate non-pub static methods with overloads/default params
Cannot correctly mock a non-default constructor
An exception for non-default arg prior to WillReturn()
0
votes
Please make Isolator throw an exception for Isolate.WhenCalled(() => obj.Method(arg)).WillReturn(returnValue) when arg != default(typeof(arg)).
Currently I find it easy to misinterpret
Isolate.WhenCalled(() => obj.Method(1)).WillReturn(1)
as being
Isolate.WhenCalled(() => a.Method(1)).WithExactArguments().WillReturn(1).
asked
Jan 1, 2010
by
Neil
Report User
(
27.7k
points)
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
2
Answers
0
votes
Hi Neil,
Thanks for the idea, I agree it is confusing. At this point this kind of change will cause a major breaking change for existing tests.
Regards,
Elisha,
Typemock Support
answered
Jan 2, 2010
by
Elisha
Report User
(
12k
points)
Please
log in
or
register
to add a comment.
0
votes
Thanks Elisha.
answered
Jan 2, 2010
by
Neil
Report User
(
27.7k
points)
Please
log in
or
register
to add a comment.
...
×
Choose the product type:
WINDOWS
LINUX DEB
LINUX RMP
×