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