C# specflow:从文件中馈送数据并在c中异步运行场景#
具有此C# specflow:从文件中馈送数据并在c中异步运行场景#,c#,unit-testing,specflow,C#,Unit Testing,Specflow,具有此功能: Feature: ServiceAdd Check if addition works well @someTest Scenario: Add two numbers Given I connected to the api And I check the result | a | b | ExpectedResult | | 1 | 2 | 3 | | 4 | 2 | 6 |
功能
:
Feature: ServiceAdd
Check if addition works well
@someTest
Scenario: Add two numbers
Given I connected to the api
And I check the result
| a | b | ExpectedResult |
| 1 | 2 | 3 |
| 4 | 2 | 6 |
| -1| 2 | 1 |
| 1 | 2 | 3 |
| 1 | 2 | 3 |
| 1 | 2 | 3 |
以及c#
代码:
[Given(@"I check the result")]
public void GivenICheckTheResult(Table table)
{
......
}
我有一些问题:
async
中的所有值运行测试(我不想等待结果来启动新测试)