Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • Try to run the second method and see what happens. Hint: ForEach does not work well with async lambdas. Commented Jun 14, 2019 at 8:40
  • 1
    My test method isn't required to be async anymore - what is the problem with having test method to be async? Commented Jun 14, 2019 at 8:41
  • 1
    With the first method signature you have a guarantee that all async methods on your classes will be called (and completed) before leaving the method. In the second one I believe you have no such guarantee. Commented Jun 14, 2019 at 8:46