Created
October 29, 2012 22:34
-
-
Save aaronpowell/3976980 to your computer and use it in GitHub Desktop.
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
| [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