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
Hello,

I am unable to set Form values, getting the below exception.

Isolate.WhenCalled(() => _requestController.Request.Form["requestObject"]).WillReturn("testObject");

is throwing the below exception

Evaluation of method _72MryuZBmhDJUfJUxd97ezd07bE_._ugrz5HsjERv98tCTQmbIeCpCNjf_[[System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].WillReturn requires calling method System.Reflection.RuntimeMethodInfo.get_ReturnTypeCustomAttributes, which cannot be called in this context.

Please help.

Regards,

Roopa
asked by roopa (600 points)

1 Answer

0 votes

Hi Roopa,

Thank you for contacting us.

Can you please share with us the version of Isolator installed on your machine? 

Also, can you please provide us with the logs of the run and also if it's possible a small project that reproduces the issue?

Cheers,
Alon Sapozhnikov.

answered by Alon_TypeMock (9.1k points)
...