Esempio n. 1
0
 private void OnUnhandledAsyncException(WebViewControl.UnhandledExceptionEventArgs e)
 {
     if (FailOnAsyncExceptions)
     {
         Assert.Fail("An async exception ocurred: " + e.Exception.Message);
     }
 }
Esempio n. 2
0
 protected void OnUnhandledAsyncException(WebViewControl.UnhandledExceptionEventArgs e)
 {
     if (FailOnAsyncExceptions)
     {
         Application.Current.Dispatcher.BeginInvoke(new Action(() => {
             Assert.Fail("An async exception ocurred: " + e.Exception.ToString());
         }));
     }
 }