J'ai une fonction qui appelle un test sur chaque objet. Je veux être en mesure de retester si le test en cours échoue.Fonction de redémarrage en cours d'exécution
foreach (TestObject test in Tests)
{
test.RunTest()
}
//This is in the TestObject class
RunTest()
{
if (failure)
{
//Want to be able to run RunTest() again without interrupting the foreach loop.
}
}
grands esprits pensent :) – Kyra