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

How to run C# code using mono without Xamarin in Android? -

python - Specify path of savefig with pylab or matplotlib -

c# - SharpSsh Command Execution -