Quick question : Can I programmatically create tests in visual studio and have them displayed into the Test Explorer ? is it doable ?
I'm using the logic of Data driven tests so i can actually do all my tests but they are displayed in only one test in the Test Explorer because this method uses only one [TestMethod]
so is there a way to do something in the logic of :
foreach(item in list)
{
// Create a "[TestMethod]" that will be displayed in the Test Explorer
}
The "foreach" is already done with the Data driven tests but maybe there is another way that allow to cycle through my data and create a Test for each entry ? Thanks :)
Aucun commentaire:
Enregistrer un commentaire