public async Task CanQuitAppWhileHavingActivePreprocessingUserInteraction(TestAppInstance app) { var preprocTask = app.EmulateUrlDragAndDrop(app.Samples.GetSampleAsUri("XmlWriterTraceListenerAndTextWriterTraceListener.zip")); await app.WaitFor(() => app.ViewModel.PreprocessingUserInteractions.DialogData != null); Check.That(app.ViewModel.PreprocessingUserInteractions.DialogData.Items.Count).IsEqualTo(2); await app.Dispose(); }
public async Task CanQuitAppWhilePreprocessingIsActive(TestAppInstance app) { var downloadingPreprocessing = app.EmulateUrlDragAndDrop(app.Samples.GetSampleAsUri("chrome_debug_1.log")); await app.Dispose(); Check.That(downloadingPreprocessing.IsFaulted).IsTrue(); var webEx = downloadingPreprocessing.Exception.InnerException as System.Net.WebException; Check.That(webEx).IsNotNull(); Check.That(webEx.Status).IsEqualTo(System.Net.WebExceptionStatus.RequestCanceled); }
public async Task AfterEach() { await app.Dispose(); }