Skip to content

Instantly share code, notes, and snippets.

@mazur
Created April 7, 2011 12:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mazur/907648 to your computer and use it in GitHub Desktop.
Save mazur/907648 to your computer and use it in GitHub Desktop.
public IEnumerable<Action> Parameterized_shit_method_bithes()
{
yield return () => Run_me_with_params(5, 4);
yield return () => Run_me_with_params(7, 8);
yield return () => Run_me_with_params(12, 56);
}
protected void Run_me_with_params(int x, int y)
{
// Assert shit here
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment