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

Rewrite MAUI PropertyGridView, MDI and ImageList tests #6405

Merged
merged 3 commits into from
Jan 24, 2022

Conversation

Danil-Andrianov
Copy link
Contributor

@Danil-Andrianov Danil-Andrianov commented Dec 22, 2021

Partially implements #3617

Proposed changes

  • Replaced PropertyGridViewMAUI tests into unit tests project
  • Replaced MdiMAUI tests into unit tests project
  • Replaced ImageListMAUI tests into unit tests project
Microsoft Reviewers: Open in CodeFlow

using System.Runtime.Serialization.Formatters.Binary;
using System.Windows.Forms.TestUtilities;
using Xunit;

namespace System.Windows.Forms.Tests
{
using static Interop;
Copy link
Contributor

@WPMGPRoSToTeMa WPMGPRoSToTeMa Dec 28, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please clarify why did you put this using into the namespace? Just trying to figure out why some of usings are inside the namespace and others are outside of it.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

VS works better when using directives are outside the namespace block.
The difference is in order of resolution of external types, first compiler searches within the namespace, including namespaces declared in the inner using directives, and then in namespaces listed in the outer using directives. So it's best not to mix inner and outer directives.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for pointing that out, it's mere an inaccuracy from my side.

@Tanya-Solyanik
Copy link
Member

@Danil-Andrianov - please investigate test failures

@Tanya-Solyanik Tanya-Solyanik added 📭 waiting-author-feedback The team requires more information from the author and removed waiting-review This item is waiting on review by one or more members of team labels Jan 5, 2022
@ghost ghost removed the 📭 waiting-author-feedback The team requires more information from the author label Jan 12, 2022
@Danil-Andrianov Danil-Andrianov marked this pull request as draft January 12, 2022 14:28
@ghost ghost added the draft draft PR label Jan 12, 2022
@Danil-Andrianov Danil-Andrianov force-pushed the MAUISmallTestsPart3 branch 3 times, most recently from d65e3c3 to 59fabf4 Compare January 13, 2022 09:50
@Danil-Andrianov Danil-Andrianov force-pushed the MAUISmallTestsPart3 branch 4 times, most recently from 5a4eb4c to b7e6ecd Compare January 18, 2022 17:07
};
childForm.MdiParent = form;

form.Show();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The container form is already shown and focused.

@RussKie RussKie added the 📭 waiting-author-feedback The team requires more information from the author label Jan 19, 2022
@ghost ghost removed the 📭 waiting-author-feedback The team requires more information from the author label Jan 19, 2022
@Danil-Andrianov Danil-Andrianov marked this pull request as ready for review January 19, 2022 08:47
@Danil-Andrianov Danil-Andrianov added draft draft PR waiting-review This item is waiting on review by one or more members of team and removed draft draft PR labels Jan 19, 2022
@Danil-Andrianov Danil-Andrianov force-pushed the MAUISmallTestsPart3 branch 2 times, most recently from f4d03f0 to ef7a09a Compare January 21, 2022 05:53
@Danil-Andrianov Danil-Andrianov force-pushed the MAUISmallTestsPart3 branch 2 times, most recently from 3f996cc to e14bb90 Compare January 21, 2022 06:13
@RussKie RussKie merged commit 9eb2879 into dotnet:main Jan 24, 2022
@ghost ghost added this to the 7.0 Preview2 milestone Jan 24, 2022
@RussKie RussKie added test-enhancement Improvements of test source code and removed waiting-review This item is waiting on review by one or more members of team labels Jan 24, 2022
@ghost ghost locked as resolved and limited conversation to collaborators Feb 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
test-enhancement Improvements of test source code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants