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
    中的所有值运行测试(我不想等待结果来启动新测试)
  • 如何从文件或数据库中输入这些值,以便测试自动读取这些值
  • 您需要使用支持并行运行测试的测试运行程序。目前我认为是NUnit3、XUnit2、SpecRun或NCrunch

  • 您可能可以为此使用,尽管我没有使用它,因此无法确定它是否适合此用例,并且它是一个付费扩展