标签: c# asynchronous specflow
我有一个步骤类,它具有调用异步API和断言所需的步骤。目前它看起来像是:
[Given(@"a setting from API is correct")] public async void GetSetting() { var setting = (await GetSettingsFromApi).Setting; Assert.IsTrue(setting); }
这里有几个问题: