How to run a test method with multiple parameters in MSTest?
问题 NUnit has a feature called Values, like below: [Test] public void MyTest( [Values(1,2,3)] int x, [Values(\"A\",\"B\")] string s) { // ... } This means that the test method will run 6 times: MyTest(1, \"A\") MyTest(1, \"B\") MyTest(2, \"A\") MyTest(2, \"B\") MyTest(3, \"A\") MyTest(3, \"B\") We\'re using MSTest now, is there any equivalent for this so that I can run the same test with multiple parameters? [TestMethod] public void Mytest() { // ... } 回答1: It is unfortunately not supported in