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 Answers. Here you can ask and receive answers from other community members. And if you liked or disliked an answer or thread: react with an up- or downvote Enjoy!
0 votes
Hi,

Is there anyway to mock away all of the methods that are called by a particular object? I can manually specify each method name for every expected occurrence. But is there another way to do this without explicitly mocking all the methods?
________
buy no2 vaporizer
asked by (59.1k points)

3 Answers

0 votes
Hi,

Currently there's no API for creating a stub object, without specifying expectations. We can certainly add this to the feature wish list.

What would be the scenario you want use a stub object without verifying the expectations?
answered by (14.5k points)
0 votes
:idea: Take a look at this post (Stub with TypeMock)
answered by (5.1k points)
0 votes
Hi,

Currently there's no API for creating a stub object, without specifying expectations. We can certainly add this to the feature wish list.

What would be the scenario you want use a stub object without verifying the expectations?


gilz, what I wanted could be found in the post eli mentioned. Thanks for your help :wink:
________
vaporgenie vaporizer
answered by (59.1k points)
...