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

Enum as Step Parameter #114

@nehashri

Description

@nehashri

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions