I'm using the following code snippet currently to disable test cases in a suite
Code: Select all
TestSuite.Current.GetTestCase("TestCase1").Checked = false;
TestSuite.Current.GetTestCase("TestCase2").Checked = false;
TestSuite.Current.GetTestCase("TestCase13").Checked = false;
...
But I would like to know if I can do this in one line of code or more of an iterative way of looking each child test case of the current test suite and marking it as unchecked so that I don't need to worry about test executing any new test case that someone added under the suite
Thanks in advance for your help