Example #1
0
 private async Task RegisterWithAnalyzerAsync()
 {
     if (_analyzer != null)
     {
         _analyzer.AnalysisComplete -= AnalysisComplete;
     }
     _analyzer = _project.Analyzer;
     if (_analyzer != null)
     {
         _analyzer.AnalysisComplete += AnalysisComplete;
         await _analyzer.RegisterExtensionAsync(typeof(TestAnalyzer)).ConfigureAwait(false);
         await UpdateTestCasesAsync(_analyzer.Files, false).ConfigureAwait(false);
     }
 }