Inheritance: System.MarshalByRefObject, ISpecificationRunListener
        public void RunAssembly(string source, Settings settings, Uri executorUri, IFrameworkHandle frameworkHandle)
        {
            source = Path.GetFullPath(source);

            using (var scope = new IsolatedAppDomainExecutionScope<AppDomainExecutor>(source)) {
                VSProxyAssemblySpecificationRunListener listener = new VSProxyAssemblySpecificationRunListener(source, frameworkHandle, executorUri, settings);

                AppDomainExecutor executor = scope.CreateInstance();
                executor.RunAllTestsInAssembly(source, listener);
            }
        }
示例#2
0
        public void RunAssembly(string source, Settings settings, Uri executorUri, IFrameworkHandle frameworkHandle)
        {
            source = Path.GetFullPath(source);

            using (var scope = new IsolatedAppDomainExecutionScope <AppDomainExecutor>(source)) {
                VSProxyAssemblySpecificationRunListener listener = new VSProxyAssemblySpecificationRunListener(source, frameworkHandle, executorUri, settings);

                AppDomainExecutor executor = scope.CreateInstance();
                executor.RunAllTestsInAssembly(source, listener);
            }
        }
        public void RunAssemblySpecifications(string assemblyPath,
                                              IEnumerable<VisualStudioTestIdentifier> specifications,
                                              Settings settings,
                                              Uri executorUri,
                                              IFrameworkHandle frameworkHandle)
        {
            assemblyPath = Path.GetFullPath(assemblyPath);

            using (var scope = new IsolatedAppDomainExecutionScope<AppDomainExecutor>(assemblyPath))
            {
                VSProxyAssemblySpecificationRunListener listener = new VSProxyAssemblySpecificationRunListener(assemblyPath, frameworkHandle, executorUri, settings);

                AppDomainExecutor executor = scope.CreateInstance();

                executor.RunTestsInAssembly(assemblyPath, specifications, listener);
            }
        }
示例#4
0
        public void RunAssemblySpecifications(string assemblyPath,
                                              IEnumerable <VisualStudioTestIdentifier> specifications,
                                              Settings settings,
                                              Uri executorUri,
                                              IFrameworkHandle frameworkHandle)
        {
            assemblyPath = Path.GetFullPath(assemblyPath);

            using (var scope = new IsolatedAppDomainExecutionScope <AppDomainExecutor>(assemblyPath))
            {
                VSProxyAssemblySpecificationRunListener listener = new VSProxyAssemblySpecificationRunListener(assemblyPath, frameworkHandle, executorUri, settings);

                AppDomainExecutor executor = scope.CreateInstance();

                executor.RunTestsInAssembly(assemblyPath, specifications, listener);
            }
        }