Created
October 17, 2014 13:37
-
-
Save joebuschmann/4883317c7d53cc0e80f8 to your computer and use it in GitHub Desktop.
Step binding with optional preceding pronoun
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [When(@"(?:I\s)?remove the (\d+)(?:st|nd|rd|th) item")] | |
| public void WhenIRemoveTheItem(int index) | |
| { | |
| _products.RemoveAt(--index); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment