我有一個(gè)場(chǎng)景:Scenario: Check all these numbers Given I got <cat> When I get string <string> Then I see result <result>Examples: | cat | string | result | | 1 | a | 1=a | | 2 | b | 2=b | | 3 | c | 3=c |而這一步定義:[Given(@"I got (.*)")]public void Igot(string cat){ // will do stuff here}方法中的cat參數(shù)Igot()是接收值"<cat>",而不是字符串值"1"。為什么?
SpecFlow 與示例字段不匹配
天涯盡頭無(wú)女友
2022-10-15 15:08:46