예제 #1
0
        /// <summary>
        /// Helper routine that makes a suite from either a TestFixture or
        /// a legacy Suite property.
        /// </summary>
        /// <param name="testType"></param>
        /// <returns></returns>
        private TestSuite MakeSuite(Type testType)
        {
            TestSuite suite = null;

            if (testType != null)
            {
                if (TestFixture.IsValidType(testType))
                {
                    suite = new TestFixture(testType);
                }
                else if (LegacySuite.IsValidType(testType))
                {
                    suite = new LegacySuite(testType);
                }
            }

            return(suite);
        }
예제 #2
0
 private bool CanMakeSuite(Type testType)
 {
     //return TestFixture.IsValidType( testType ) || LegacySuite.IsValidType( testType );
     return(TestFixture.IsValidType(testType));
 }