Await Tasks in Test Setup Code in xUnit.net?
问题 The exact situation is I'm doing E2E tests with Protractor.NET (.NET port of AngularJS's Protractor E2E framework) and I would like to make some web requests (and the API -- System.Net.Http.HttpClient -- has all Async/ Task methods) to Arrange my test before I Act/Assert, only I need to do this same Arrange-ing for several tests. I'm using xUnit.net as my test runner they use an interface ( IUseFixture<T> ) for per-fixture setup code. It would be nice if there was a IAsyncUseFixture<T> that