private void ReportStatus(bool success, TimeSpan ts, string failureText) { try { string text = success ? "Success" : "Failure"; text = text + " " + ts.ToString().Substring(0, 8); TestCompleted(success, text, failureText); } catch (Exception) { } }