Skip to content

Instantly share code, notes, and snippets.

@joebuschmann
Last active August 29, 2015 14:07
Show Gist options
  • Save joebuschmann/a52cd96573ae4f21e240 to your computer and use it in GitHub Desktop.
Save joebuschmann/a52cd96573ae4f21e240 to your computer and use it in GitHub Desktop.
Step binding example for converting oridinal text to integers
[When(@"I 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