/// <summary>
        /// Returns the test suite from a given class.
        /// </summary>
        /// <remarks>
        /// The assemblyQualifiedName parameter needs to be in form:
        /// "full.qualified.class.name,Assembly"
        /// </remarks>
        private ITest GetSuite(string assemblyQualifiedName)
        {
            // Don't worry about catching exceptions in this method.  The
            // NUnitTask will catch them and throw a BuildException back to
            // NAnt with the correct location in the build file. [gs]

            StandardLoader loader = new StandardLoader();
            ITest          test   = loader.LoadTest(assemblyQualifiedName);

            return(test);
        }
Esempio n. 2
0
        /// <summary>
        /// Returns the test suite from a given class.
        /// </summary>
        /// <remarks>
        /// The assemblyQualifiedName parameter needs to be in form:
        /// "full.qualified.class.name,Assembly"
        /// </remarks>
        private ITest GetSuite(string assemblyQualifiedName)
        {
            // Don't worry about catching exceptions in this method.  The
            // NUnitTask will catch them and throw a BuildException back to
            // NAnt with the correct location in the build file. [gs]

            StandardLoader loader = new StandardLoader();
            ITest test = loader.LoadTest(assemblyQualifiedName);
            return test;
        }