public IEnumerable<MSpecTestCase> DiscoverSpecs(string assemblyFilePath)
        {
            using (IsolatedAppDomainExecutionScope<TestDiscoverer> scope = new IsolatedAppDomainExecutionScope<TestDiscoverer>(assemblyFilePath)) {
                TestDiscoverer discoverer = scope.CreateInstance();

                return discoverer.DiscoverTests(assemblyFilePath).ToList();
            }
        }
        public IEnumerable <MSpecTestCase> DiscoverSpecs(string assemblyFilePath)
        {
            using (IsolatedAppDomainExecutionScope <TestDiscoverer> scope = new IsolatedAppDomainExecutionScope <TestDiscoverer>(assemblyFilePath)) {
                TestDiscoverer discoverer = scope.CreateInstance();

                return(discoverer.DiscoverTests(assemblyFilePath).ToList());
            }
        }
        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);
            }
        }
Exemplo n.º 4
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);
            }
        }
Exemplo n.º 5
0
        public IEnumerable<MSpecTestCase> DiscoverSpecs(string assemblyFilePath)
        {

#if !NETSTANDARD
            using (IsolatedAppDomainExecutionScope<TestDiscoverer> scope = new IsolatedAppDomainExecutionScope<TestDiscoverer>(assemblyFilePath)) {
                TestDiscoverer discoverer = scope.CreateInstance();
#else
                TestDiscoverer discoverer = new TestDiscoverer();
#endif
                return discoverer.DiscoverTests(assemblyFilePath).ToList();

#if !NETSTANDARD
            }
#endif
        }
        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);
            }
        }
Exemplo n.º 7
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);
            }
        }