/// <summary> /// Sorts tests under this suite using the specified comparer. /// </summary> /// <param name="comparer">The comparer.</param> public void Sort(IComparer comparer) { this.tests.Sort(comparer); foreach (Test test in Tests) { TestSuite suite = test as TestSuite; if (suite != null) { suite.Sort(comparer); } } }
/// <summary> /// Sorts tests under this suite. /// </summary> public void Sort() { if (!maintainTestOrder) { this.tests.Sort(); foreach (Test test in Tests) { TestSuite suite = test as TestSuite; if (suite != null) { suite.Sort(); } } } }