c# - SpecFlow: System.FormatException: Input string was not in a correct format -


i getting following error when running tests using specflow:

system.formatexception: input string not in correct format. 

and took me while work out why happening.

it ended being because had omitted single quotes in 1 of step definitions, example:

[then(@"something adds quantity of (.*)")] 

when should have been

[then(@"something adds quantity of '(.*)'")] 

note single quotes around (.*)


Comments

Popular posts from this blog

r - Trouble relying on third party package imports in my package -

Payment information shows nothing in one page checkout page magento -