Ejemplo n.º 1
0
        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();
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
 public async Task AfterEach()
 {
     await app.Dispose();
 }