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

as i understand if an argument fails verification i get a message containing the object.ToString().
How about that message also contains the typeof(object)

for example i have 2 classes they both inherit a base class and their to String method return an integer.
It will be usefull to know just from looking the output which is the type of class that passed in as an arument

thnks
asked by tolisss (28.8k points)

6 Answers

0 votes
as i understand if an argument fails verification i get a message containing the object.ToString().
How about that message also contains the typeof(object)


Hi, This sounds like a good idea, especially when the ToString is not clear enough. I will add this request to our roadmap
answered by richard (3.9k points)
0 votes
Hi

It willbe nice if u could also add 3 methods like

ExpectAndReturnAlways,ExpectGetIndexAlways,ExpectSetIndexAlways

thnks
answered by tolisss (28.8k points)
0 votes
ExpectAndReturnAlways,ExpectGetIndexAlways,ExpectSetIndexAlways


Hi,
Isn't AlwaysReturn the same as ExpectAndReturnAlways?

We will be adding the Always yo the Index Functions, in a future release.
answered by scott (32k points)
0 votes
Isn't AlwaysReturn the same as ExpectAndReturnAlways?


but what to do if u what to use AlwaysReturn and also check arguments?
answered by tolisss (28.8k points)
0 votes
but what to do if u what to use AlwaysReturn and also check arguments?

Hi,
Version 2.2 that will be out next week includes this feature. :D
answered by scott (32k points)
0 votes
Hi,
:D We have added the following in version 2.2:
1. Better verification messages - will now include type name
2. Always expectations for Indexes
3. Argument Checking for Always expectations

Thanks for the ideas.
answered by richard (3.9k points)
...