SpecFlow.VisualStudio icon indicating copy to clipboard operation
SpecFlow.VisualStudio copied to clipboard

Generation: better parameter names than p0, p1 etc

Open 304NotModified opened this issue 5 years ago • 0 comments

Issue Description

Feature request:

I'm not keen on the parameter names p0, p1 etc fallback.

As we now the type, would be be cool to prefix it with the names? Also I think a 1 based number is more natural.

Text:

I have 2 numbers 3 and 4 and this is my 'cool' text.

Current result: int p0, Decimal p1, int p2, string p3

Proposal: int number1, Decimal number2, int number3, int text1 Or : int number, Decimal number2, int number3, int text

PS: I see this is handled in StepParameterNameGenerator.GenerateParameterName

304NotModified avatar Apr 26 '20 20:04 304NotModified