Пример #1
0
            private async void RegisterWithAnalyzer()
            {
                if (_analyzer != null)
                {
                    _analyzer.AnalysisComplete -= AnalysisComplete;
                }
                _analyzer = _project.Analyzer;
                _analyzer.RegisterExtension(typeof(TestAnalyzer).Assembly.Location);
                _analyzer.AnalysisComplete += AnalysisComplete;

                await UpdateTestCasesAsync(_analyzer.Files).HandleAllExceptions(_discoverer._serviceProvider, GetType());
            }
Пример #2
0
            private async Task RegisterWithAnalyzerAsync()
            {
                if (_analyzer != null)
                {
                    _analyzer.AnalysisComplete -= AnalysisComplete;
                }
                _analyzer = _project.Analyzer;
                if (_analyzer != null)
                {
                    _analyzer.RegisterExtension(typeof(TestAnalyzer).Assembly.Location);
                    _analyzer.AnalysisComplete += AnalysisComplete;

                    await UpdateTestCasesAsync(_analyzer.Files, false);
                }
            }