Exemple #1
0
        /// <summary>
        /// Gets the test extensions defined in the extension assembly list.
        /// </summary>
        /// <typeparam name="TPluginInfo">
        /// Type of PluginInfo.
        /// </typeparam>
        /// <typeparam name="TExtension">
        /// Type of Extension.
        /// </typeparam>
        /// <param name="extensionPaths">
        /// Extension assembly paths.
        /// </param>
        /// <returns>
        /// List of extensions.
        /// </returns>
        /// <remarks>
        /// Added to mock out dependency from the actual test plugin discovery as such.
        /// </remarks>
        private Dictionary <string, TPluginInfo> GetTestExtensions <TPluginInfo, TExtension>(IEnumerable <string> extensionPaths) where TPluginInfo : TestPluginInformation
        {
            foreach (var extensionPath in extensionPaths)
            {
                this.SetupAssemblyResolver(extensionPath);
            }

            var discoverer = new TestPluginDiscoverer();

            return(discoverer.GetTestExtensionsInformation <TPluginInfo, TExtension>(extensionPaths, this.loadOnlyWellKnownExtensions));
        }
Exemple #2
0
        /// <summary>
        /// Gets the test extensions defined in the extension assembly list.
        /// </summary>
        /// <param name="extensionPaths">Extension assembly paths.</param>
        /// <returns>List of extensions.</returns>
        /// <remarks>Added to mock out dependency from the actual test plugin discovery as such.</remarks>
        internal virtual TestExtensions GetTestExtensions(IEnumerable <string> extensionPaths)
        {
            var discoverer = new TestPluginDiscoverer();

            return(discoverer.GetTestExtensionsInformation(extensionPaths, this.loadOnlyWellKnownExtensions));
        }