Standard Conversion exceptions
Hi - When we have a situation where a string is converted to an enum as part of a stepdef (by SpecFlow's standard conversion), we get an exception outlining the conversion error - i.e.:
System.ArgumentException : Requested value 'xyz' was not found
This works as expected, but lacks some context. Do we have the ability to add more context by catching this ourselves to add missing info - i.e. the stepdef method, parameter name and possibly the available values on the enum?
I like the standard conversion concept, but feel it needs some more info on the error handling. Any info here would be great!
0
Please sign in to leave a comment.
Comments
0 comments