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 (140 points)

1 Answer

0 votes
Hi meansala,

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



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