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

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -