Ejemplo n.º 1
0
        public static void InvokeCurrentCallback(string testName, TestStatus status, ExceptionDetails exceptionDetails, string traceLog)
        {
            if (_currentCallback == null)
                return;

            _currentCallback(testName, status, exceptionDetails, traceLog);
        }
Ejemplo n.º 2
0
 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;
 }