Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added few tests for OpenFolderDialog #130

Merged
merged 4 commits into from
May 5, 2023
Merged

Conversation

dipeshmsft
Copy link
Member

@dipeshmsft dipeshmsft commented Apr 28, 2023

Fixes Issue #129

Description

This PR adds a few tests for the upcoming OpenFolderDialog API.
It mostly derives from file dialog tests. Apart from that added a test for Multiselect functionality.

There are two ways in which common dialog tests are executed - one RunApplication mode, which runs an application and the second is RunConfigurationFile, which allows the test infra to interact with the dialog. I have created separate projects for each of them.

Added a total of 6 tests, out of which 5 are passing. 1 failure is similar to that in the OpenFileDialog test ( failing test is a copy of a test for OpenFileDialog ).

Here are the guidelines/process for adding tests for new public APIs : test-addition-guidelines

PS : As of now, I have not added the projects in root sln ( Microsoft.Dotnet.Wpf.Test.sln ) because it will break the build.

Steps for building this PR

Take the FolderDialogTests and OpenFolderDialogTests project nodes from AppModel.sln and add them to Microsoft.Dotnet.Wpf.Test.sln. Now follow the steps mentioned in the above test addition guideline link.

Customer Impact

Allows developers to run tests on OpenFolderDialog

Regression

--

Testing

Built and ran the tests

Risk

Microsoft Reviewers: Open in CodeFlow

@dipeshmsft dipeshmsft requested a review from a team as a code owner April 28, 2023 05:38
@ghost ghost assigned dipeshmsft Apr 28, 2023
@ghost ghost added the PR label Apr 28, 2023
@ghost ghost requested a review from singhashish-wpf April 28, 2023 05:38
@dipeshmsft dipeshmsft added the add-tests Add test coverage for the given scenario label May 3, 2023
@dipeshmsft dipeshmsft merged commit da91cbe into main May 5, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Jun 4, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
add-tests Add test coverage for the given scenario PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants