public static void WaitForMessage(this OutputWindowPane outputWindow, string message, int messageCount = 1, TimeSpan waitFor = new TimeSpan()) { if (waitFor == TimeSpan.Zero) { waitFor = TimeSpan.FromMinutes(1); } ((DTE2)outputWindow.DTE).WaitFor(() => outputWindow.Read().Contains(message, messageCount), waitFor); }
string ReadTest(OutputWindowPane pane) { return pane.Read().Split(new[] { "\r\n" }, StringSplitOptions.RemoveEmptyEntries) .LastOrDefault(x => x.StartsWith(PluginManager.RESHARPER_TEST)); }
string ReadTest(OutputWindowPane pane) { return(pane.Read().Split(new[] { "\r\n" }, StringSplitOptions.RemoveEmptyEntries) .LastOrDefault(x => x.StartsWith(PluginManager.RESHARPER_TEST))); }