Skip to content

Instantly share code, notes, and snippets.

@aaronpowell
Created October 29, 2012 22:34
Show Gist options
  • Select an option

  • Save aaronpowell/3976980 to your computer and use it in GitHub Desktop.

Select an option

Save aaronpowell/3976980 to your computer and use it in GitHub Desktop.
[TestClass]
class Tests {
[TestMethod]
public void DataSet_A() {
RunTestWithData("A", "Z");
}
[TestMethod]
public void DataSet_B() {
RunTestWithData("B", "Y");
}
private void RunTestWithData(string arg1, string arg2) {
var api = new API();
var result = api.Foo(arg1, arg2);
Assert.IsTrue(result, "Called with " + arg1 + ", " + arg2);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment