场景大纲生成不正确方法的 SpecFlow 步骤生成

SpecFlow Step Generation for Scenario Outline Generating Incorrect Methods

我是 Visual Studio 的新人。我将 Visual Studio 2015 与 SpecFlow 一起使用。以下是功能文件:

@mytag
Scenario Outline: Successful Authentication
    Given I am a user of type <user>
    When I hit the application URL
    And I provide <email>
    And I click on Log In Button
    Then I will be landed to the Home Page
    And I will be able to see <name> on the Home Page

Examples: 
    | user      | email          | name  |
    | admin     | a.b@example.com | alpha |
    | non-admin | b.c@example.com | beta  |

当我生成步骤定义时,我期望参数代替变量,而是生成如下方法:

[Given(@"I am a user of type admin")]
public void GivenIAmAUserOfTypeAdmin()
{
    ScenarioContext.Current.Pending();
}

我反而期待这样的方法:

[Given(@"I am a user of type '(.*)'")]
public void GivenIAmAUserOfType(string p0)
{
    ScenarioContext.Current.Pending();
}

我错过了什么?

例如,在 Given 步骤中用 '' 包围 <user>

Given I am a user of type '<user>'

将生成所需的结果。可能需要它来识别正则表达式。