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
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 by Neil (27.7k points)

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.

Typemock Support
answered by Elisha (12k points)
0 votes
Thanks Elisha.
answered by Neil (27.7k points)