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!

Unit tests for async methods

0 votes
I am writing unit tests around HTTPClient methods using the async keyword. In the unit tests I use the .Result call to make the async methods run synchronously. The tests run fine but I am not seeing any test coverage green shields  or results in the coverage map.

I have closed the solution/deleted the test cache and rerun. Again - all the tests pass but I can't see coverage. Just a limit of trying to test an "async" method?
asked Apr 4 by meansala (160 points)

1 Answer

0 votes
Hi meansala,

Can you tell me which visual studio are you using and what version of typemock?

Cheers,

Daniel

Typemock Support.
answered Apr 23 by Daniel (1,340 points)
...