BDD SpecFlow 场景

BDD SpecFlow Scenarios

今天我开始使用 SpecFlow + Selenium 研究 BDD,我发现几个例子只显示 1 return.

如何编写 return 多个 多个项目 的场景。例如:

Given a name "test"
I click on the SEARCH button

那么结果将等于下面的table:

name | last name
test | fulano
test | siclano

在这种情况下,我该如何编写 THEN?接受 return table 显示的 2 行?

场景:

Given a name "test"
When I click on the SEARCH button
Then the result will be 
| name | last name
| test | fulano
| test | siclano

代码:

[Then("The result will be")]
public void ThenTheResultWillBe(Table table)
{
    //check that the result contains all the values in the table
}