public static void InvokeCurrentCallback(string testName, TestStatus status, ExceptionDetails exceptionDetails, string traceLog) { if (_currentCallback == null) return; _currentCallback(testName, status, exceptionDetails, traceLog); }
private async Task ReportTestProgressAsync(TestStatus status, ExceptionDetails exceptionDetails = null) { await TaskEx.Run(() => { using (var client = TestCallbackClient.Create()) { client.ReportTestProgress("ThisTest", status, exceptionDetails, TestLog.Current.MessageDetails); } }); }
public TestInjectorInvokeException(ExceptionDetails exceptionDetails) : base("Error returned from client invocation: " + exceptionDetails.Message, new Exception(exceptionDetails.ExceptionString)) { _exceptionDetails = exceptionDetails; }