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
Bug: Isolate.WhenCalled destroys a property value
WhenCalled is not overriden by last instruction
Issue with return value of a method that returns CString
How to Figure out if Prop Returns Value When Overrides Value
Property loses its value after used as arg in WhenCalled()
Multible Isolate.WhenCalled() returns the last mocked value
0
votes
I'm calling same method twice but returning different value on each call.
Reader reader = new Reader();
Isolate.WhenCalled(() => reader.ReadValue()).WillReturn(1);
Isolate.WhenCalled(() => reader.ReadValue()).WillReturn(2);
Problem is that the first call already returns the number 2. Am I missing something?
I'm using TypeMock Isolator 5.1.1.0
asked
Sep 10, 2009
by
JK
Report User
(
3.1k
points)
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
2
Answers
0
votes
Hi,
What you're trying to do, sequenced behavior, was introduced in version 5.2.
Time to upgrade :lol:
answered
Sep 10, 2009
by
gilz
Report User
(
14.5k
points)
Please
log in
or
register
to add a comment.
0
votes
Thanks. I was expecting that. I guess that there are other similar kind of issues also so it's definitely time to upgrade.
answered
Sep 10, 2009
by
JK
Report User
(
3.1k
points)
Please
log in
or
register
to add a comment.
...
×
Choose the product type:
WINDOWS
LINUX DEB
LINUX RMP
×