I know it is bad practice to have a method return async void since it makes it hard to test, but is there any reason that a unit test needs to return async Task rather than async void?
Basically is this ok:
[Test()]
public async void MyTest()
{
//Some code to run test
//Assert Something
}
Or should I be doing this:
[Test()]
public async Task MyTest()
{
//Some code to run test
//Assert Something
}