You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The compiler converts each captured value into a method's parameter. That parameter's Name property is set to null, leading to ArgumentNullException when the method's parameters are used to construct the step's title and parameters.
I'm submitting a ...
What is the current behavior?
An attribute-based step can't be added with a local non-static method that captures a variable from an outer scope.
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem
The following test fails with
ArgumentNullException
Please tell us about your environment:
Other adapters are most probably affected, too.
Other information
The compiler converts each captured value into a method's parameter. That parameter's
Name
property is set to null, leading toArgumentNullException
when the method's parameters are used to construct the step's title and parameters.The null value is accessed here and here
The text was updated successfully, but these errors were encountered: