Skip to content

Instantly share code, notes, and snippets.

@isidore
Created June 18, 2014 09:16
Show Gist options
  • Save isidore/af043a5cc7b4b95c6d26 to your computer and use it in GitHub Desktop.
Save isidore/af043a5cc7b4b95c6d26 to your computer and use it in GitHub Desktop.
Scenarios
[Test]
[TestCase("foo", "bar")]
[TestCase("jack", "jill")]
public void Transformer(string a, string b)
{
using (ApprovalResults.ForScenario(a,b))
{
Approvals.Verify(Transform(a,b));
}
}
// Will Produce
Class.Transformer.ForScenario.foo.bar.approved.txt
Class.Transformer.ForScenario.jack.jill.approved.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment