Skip to content
This repository has been archived by the owner on Jul 21, 2020. It is now read-only.

Enum as Step Parameter #114

Open
nehashri opened this issue Sep 19, 2017 · 0 comments
Open

Enum as Step Parameter #114

nehashri opened this issue Sep 19, 2017 · 0 comments

Comments

@nehashri
Copy link
Contributor

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

No branches or pull requests

2 participants