コード例 #1
0
        public async Task ClickApplyAndWaitForFeatureAsync(string expectedTitle, string featureName, CancellationToken cancellationToken)
        {
            await DialogHelpers.PressButtonWithNameFromDialogWithNameAsync(JoinableTaskFactory, await TestServices.Shell.GetMainWindowAsync(cancellationToken), expectedTitle, "Apply", cancellationToken);

            await TestServices.Workspace.WaitForAsyncOperationsAsync(featureName, cancellationToken);
        }
コード例 #2
0
 public async Task ClickCancelAsync(string expectedTitle, CancellationToken cancellationToken)
 => await DialogHelpers.PressButtonWithNameFromDialogWithNameAsync(JoinableTaskFactory, await TestServices.Shell.GetMainWindowAsync(cancellationToken), expectedTitle, "Cancel", cancellationToken);
コード例 #3
0
 public async Task VerifyClosedAsync(string expectedTitle, CancellationToken cancellationToken)
 => await DialogHelpers.FindDialogByNameAsync(JoinableTaskFactory, await TestServices.Shell.GetMainWindowAsync(cancellationToken), expectedTitle, isOpen : false, cancellationToken);