There is a right way and a wrong way with programme Asynchronously, mainly due to the initial way Microsoft brought in Async programming was not best practise and they have now made changes to make it more effective and be more productive.
There are a number of best practices when it comes to Async what I’ll try and cover here are the “guidelines” than actual rules. There are exceptions to each of these guidelines. The guidelines are summarised in the table below.
Summary of Asynchronous Programming Guidelines
In theory, Async unit testing seems easy, run the Async, wait until it is finished and look at the results. But as you will find out it is not that easy.
Here is the official approach to Async unit testing