Extending MSTest
Read this great post first by William Kempf. And It's true!
http://www.digitaltapestry.net/blog/extending-mstest
Next if you're willing to bear with all that, these are the only 2 posts from circa-2009 on the intertubes that give you any hope
MSDN Blogs - Bruce Taimana Part 1. Part 2
Writing an extension in 2013
The details have changed since 2009 and combined with the paucity of information, it was three days before I had something to show.So my target extension was going to bring in NUnit's TestCaseSource functionality, whereby you could supply the parameters for a parameterized test via a method (at runtime. Compile-time is already supported via XML and DBs.. though cumbersome.)
[TestMethod]
[TestCaseSource("DivideCases")]
public void MultipleParams(int n, int d, int q)
{
Assert.AreEqual( q, n / d );
}
public static object[] DivideCases()
{
return new[]
{
new object[] {12, 3, 4},
new object[] {12, 2, 6},
new object[] {12, 4, 3}
};
}