gauge-csharp
gauge-csharp copied to clipboard
Enum as Step Parameter
Step parameters should be able to accept Enum as parameters.
enum Days { Sun, Mon, tue, Wed, thu, Fri, Sat };
The step implementation should be able to accept Enum values. The type of parameter should match the Enum name itself in step implementation.
[Step("The day is <days>")]
public void checkTodayDate(Days day)
// Implementation goes here
}
So in a spec, * The day is "Sun" should accept the value of enum