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

                project.ProjectAnalyzerChanged += ProjectAnalyzerChanged;
                RegisterWithAnalyzer();
            }
コード例 #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();
            }
コード例 #4
0
            public ProjectInfo(IVsProject project, TestContainerDiscoverer discoverer, MSBuildProjectInterpreterFactoryProvider factoryProvider)
            {
                Project           = project;
                Discoverer        = discoverer;
                FactoryProvider   = factoryProvider;
                ActiveInterpreter = FactoryProvider.ActiveInterpreter;

                Attach();
                HookNewDatabaseAvailable();
            }
コード例 #5
0
            public ProjectInfo(IVsProject project, TestContainerDiscoverer discoverer /*, MSBuildProjectInterpreterFactoryProvider factoryProvider*/)
            {
                Project = project;
                IProjectInterpreterDbChanged dbChanged = Project as IProjectInterpreterDbChanged;

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

                Attach();
                HookNewDatabaseAvailable();
            }
コード例 #8
0
            public ProjectInfo(TestContainerDiscoverer discoverer, PythonProject project) {
                _project = project;
                _discoverer = discoverer;
                _containers = new Dictionary<string, TestContainer>(StringComparer.OrdinalIgnoreCase);

                project.ProjectAnalyzerChanged += ProjectAnalyzerChanged;
                RegisterWithAnalyzer();
            }
コード例 #9
0
 public ProjectInfo(IVsProject project, TestContainerDiscoverer discoverer/*, MSBuildProjectInterpreterFactoryProvider factoryProvider*/) {
     Project = project;
     IProjectInterpreterDbChanged dbChanged = Project as IProjectInterpreterDbChanged;
     if (dbChanged != null) {
         dbChanged.InterpreterDbChanged += DatabaseChanged;
     }
     Discoverer = discoverer;
 }
コード例 #10
0
ファイル: TestMethodResolver.cs プロジェクト: wenh123/PTVS
 public TestMethodResolver([Import(typeof(SVsServiceProvider))]IServiceProvider serviceProvider,
     [Import]TestContainerDiscoverer discoverer) {
     _serviceProvider = serviceProvider;
     _discoverer = discoverer;
     _interpreterService = ((IComponentModel)_serviceProvider.GetService(typeof(SComponentModel))).GetService<IInterpreterOptionsService>();
 }
コード例 #11
0
ファイル: TestMethodResolver.cs プロジェクト: jsschultz/PTVS
 public TestMethodResolver([Import(typeof(SVsServiceProvider))]IServiceProvider serviceProvider,
     [Import]TestContainerDiscoverer discoverer) {
     _serviceProvider = serviceProvider;
     _discoverer = discoverer;
 }