gauge-csharp icon indicating copy to clipboard operation
gauge-csharp copied to clipboard

Enum as Step Parameter

Open nehashri opened this issue 8 years ago • 0 comments

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

nehashri avatar Sep 19 '17 05:09 nehashri