// ------------------------------------------------------ /// <summary> /// Tries to refresh the CxxTest Results window by setting the /// specified text message in the pass/fail bar. Does nothing if the /// window is not yet created. /// </summary> /// <param name="text"> /// The message to be displayed in the pass/fail bar. /// </param> public void TryToSetTestResultsText(string text) { CxxTestResultsToolWindow window = FindToolWindow(typeof(CxxTestResultsToolWindow), 0, false) as CxxTestResultsToolWindow; if (window != null) { window.SetToTextMode(text); } }
// ------------------------------------------------------ /// <summary> /// Tries to refresh the CxxTest Results window based on the results /// of the last run. Does nothing if the window is not yet created. /// </summary> public void TryToRefreshTestResultsWindow() { CxxTestResultsToolWindow window = FindToolWindow(typeof(CxxTestResultsToolWindow), 0, false) as CxxTestResultsToolWindow; if (window != null) { window.RefreshFromLastRun(); } }