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 i was expecting an exception if
mock.Clear("nonExistMethod")

but TypeMock Continues as if the method exist[/code]
asked by tolisss (28.8k points)

1 Answer

0 votes
Hi,
This is by design , we added all exceptions that can be thrown from the api's in the api documentation.
Clear doesn't have this as we clear the expectations of the method even if there are no expectations.
I can understand that having this will help eliminate typos.
Perhaps we can add this feature in a future release
answered by scott (32k points)
...