Exemple #1
0
 public TestMethodResolver([Import(typeof(SVsServiceProvider))] IServiceProvider serviceProvider,
                           [Import] TestContainerDiscoverer discoverer)
 {
     _serviceProvider    = serviceProvider;
     _discoverer         = discoverer;
     _interpreterService = ((IComponentModel)_serviceProvider.GetService(typeof(SComponentModel))).GetService <IInterpreterOptionsService>();
 }
Exemple #2
0
            public ProjectInfo(TestContainerDiscoverer discoverer, PythonProject project)
            {
                _project    = project;
                _discoverer = discoverer;
                _containers = new Dictionary <string, TestContainer>(StringComparer.OrdinalIgnoreCase);

                project.ProjectAnalyzerChanged += ProjectAnalyzerChanged;
                RegisterWithAnalyzer();
            }
Exemple #3
0
            public ProjectInfo(TestContainerDiscoverer discoverer, PythonProject project)
            {
                _project         = project;
                _discoverer      = discoverer;
                _containers      = new Dictionary <string, TestContainer>(StringComparer.OrdinalIgnoreCase);
                _pendingRequests = new List <string>();

                project.ProjectAnalyzerChanged += ProjectAnalyzerChanged;
                RegisterWithAnalyzerAsync().HandleAllExceptions(_discoverer._serviceProvider, GetType()).DoNotWait();
            }
Exemple #4
0
            public ProjectInfo(IVsProject project, TestContainerDiscoverer discoverer, MSBuildProjectInterpreterFactoryProvider factoryProvider)
            {
                Project           = project;
                Discoverer        = discoverer;
                FactoryProvider   = factoryProvider;
                ActiveInterpreter = FactoryProvider.ActiveInterpreter;

                Attach();
                HookNewDatabaseAvailable();
            }
            public ProjectInfo(IVsProject project, TestContainerDiscoverer discoverer /*, MSBuildProjectInterpreterFactoryProvider factoryProvider*/)
            {
                Project = project;
                IProjectInterpreterDbChanged dbChanged = Project as IProjectInterpreterDbChanged;

                if (dbChanged != null)
                {
                    dbChanged.InterpreterDbChanged += DatabaseChanged;
                }
                Discoverer = discoverer;
            }
Exemple #6
0
 public TestMethodResolver([Import(typeof(SVsServiceProvider))] IServiceProvider serviceProvider,
                           [Import] TestContainerDiscoverer discoverer)
 {
     _serviceProvider = serviceProvider;
     _discoverer      = discoverer;
 }
            public ProjectInfo(IVsProject project, TestContainerDiscoverer discoverer, MSBuildProjectInterpreterFactoryProvider factoryProvider) {
                Project = project;
                Discoverer = discoverer;
                FactoryProvider = factoryProvider;
                ActiveInterpreter = FactoryProvider.ActiveInterpreter;

                Attach();
                HookNewDatabaseAvailable();
            }
            public ProjectInfo(TestContainerDiscoverer discoverer, PythonProject project) {
                _project = project;
                _discoverer = discoverer;
                _containers = new Dictionary<string, TestContainer>(StringComparer.OrdinalIgnoreCase);

                project.ProjectAnalyzerChanged += ProjectAnalyzerChanged;
                RegisterWithAnalyzer();
            }
 public ProjectInfo(IVsProject project, TestContainerDiscoverer discoverer/*, MSBuildProjectInterpreterFactoryProvider factoryProvider*/) {
     Project = project;
     IProjectInterpreterDbChanged dbChanged = Project as IProjectInterpreterDbChanged;
     if (dbChanged != null) {
         dbChanged.InterpreterDbChanged += DatabaseChanged;
     }
     Discoverer = discoverer;
 }
Exemple #10
0
 public TestMethodResolver([Import(typeof(SVsServiceProvider))]IServiceProvider serviceProvider,
     [Import]TestContainerDiscoverer discoverer) {
     _serviceProvider = serviceProvider;
     _discoverer = discoverer;
     _interpreterService = ((IComponentModel)_serviceProvider.GetService(typeof(SComponentModel))).GetService<IInterpreterOptionsService>();
 }
Exemple #11
0
 public TestMethodResolver([Import(typeof(SVsServiceProvider))]IServiceProvider serviceProvider,
     [Import]TestContainerDiscoverer discoverer) {
     _serviceProvider = serviceProvider;
     _discoverer = discoverer;
 }