/// <summary> /// Clears any code coverage results currently on display. /// </summary> public static void ClearResults() { CodeCoveragePad pad = CodeCoveragePad.Instance; if (pad != null) { pad.ClearCodeCoverageResults(); } HideCodeCoverage(); results.Clear(); }
/// <summary> /// Shows the code coverage results in the code coverage pad and /// highlights any source code files that have been profiled. /// </summary> public static void ShowResults(CodeCoverageResults results) { CodeCoverageService.results.Add(results); CodeCoveragePad pad = CodeCoveragePad.Instance; if (pad != null) { pad.ShowResults(results); } RefreshCodeCoverageHighlights(); }
public CodeCoveragePad() { instance = this; codeCoverageControl = new CodeCoverageControl(); codeCoverageControl.UpdateToolbar(); ProjectService.SolutionClosed += SolutionClosed; ProjectService.SolutionLoaded += SolutionLoaded; ShowSourceCodePanel = CodeCoverageOptions.ShowSourceCodePanel; ShowVisitCountPanel = CodeCoverageOptions.ShowVisitCountPanel; }