Beispiel #1
0
        /// <summary>
        /// Gets the available parameters for this test module.
        /// </summary>
        /// <returns>Array of <see cref="TestParameterInfo"/> that describes allowed test parameters for the test module.</returns>
        /// <remarks>The parameters are determined by scanning all Taupo and test assemblies
        /// and examining <see cref="InjectTestParameterAttribute"/>, <see cref="ImplementationSelectorAttribute"/>.
        /// </remarks>
        public TestParameterInfo[] GetAvailableParameters()
        {
            ImplementationSelector dis = new ImplementationSelector();

            this.ConfigureImplementationSelector(dis);

            HelpGenerator hg = new HelpGenerator(this.loggerResolver);

            return(hg.GetAvailableParameters(dis.Types));
        }
Beispiel #2
0
        private void ShowHelp()
        {
            ImplementationSelector dis = new ImplementationSelector();

            this.ConfigureImplementationSelector(dis);

            HelpGenerator hg       = new HelpGenerator(this.loggerResolver);
            string        helpText = hg.GetHelpText(dis.Types);

            this.rootLogger.WriteLine(LogLevel.Info, helpText);
        }
Beispiel #3
0
        private void ShowHelp()
        {
            ImplementationSelector dis = new ImplementationSelector();
            this.ConfigureImplementationSelector(dis);

            HelpGenerator hg = new HelpGenerator(this.loggerResolver);
            string helpText = hg.GetHelpText(dis.Types);
            this.rootLogger.WriteLine(LogLevel.Info, helpText);
        }
Beispiel #4
0
        /// <summary>
        /// Gets the available parameters for this test module.
        /// </summary>
        /// <returns>Array of <see cref="TestParameterInfo"/> that describes allowed test parameters for the test module.</returns>
        /// <remarks>The parameters are determined by scanning all Taupo and test assemblies
        /// and examining <see cref="InjectTestParameterAttribute"/>, <see cref="ImplementationSelectorAttribute"/>.
        /// </remarks>
        public TestParameterInfo[] GetAvailableParameters()
        {
            ImplementationSelector dis = new ImplementationSelector();
            this.ConfigureImplementationSelector(dis);

            HelpGenerator hg = new HelpGenerator(this.loggerResolver);
            return hg.GetAvailableParameters(dis.Types);
        }