Sort() public méthode

Sorts tests under this suite.
public Sort ( ) : void
Résultat void
Exemple #1
0
        /// <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);
                }
            }
        }
Exemple #2
0
        /// <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();
                    }
                }
            }
        }