-
Notifications
You must be signed in to change notification settings - Fork 994
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
Conversation
5af8c18
to
344e6e2
Compare
31a3b7c
to
7de1a80
Compare
7de1a80
to
6b5d224
Compare
using System.Runtime.Serialization.Formatters.Binary; | ||
using System.Windows.Forms.TestUtilities; | ||
using Xunit; | ||
|
||
namespace System.Windows.Forms.Tests | ||
{ | ||
using static Interop; |
There was a problem hiding this comment.
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 using
s are inside the namespace and others are outside of it.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
@Danil-Andrianov - please investigate test failures |
src/System.Windows.Forms/tests/UnitTests/System/Windows/Forms/ImageListTests.cs
Outdated
Show resolved
Hide resolved
src/System.Windows.Forms/tests/UnitTests/System/Windows/Forms/MDITests.cs
Outdated
Show resolved
Hide resolved
src/System.Windows.Forms/tests/UnitTests/System/Windows/Forms/MDITests.cs
Outdated
Show resolved
Hide resolved
src/System.Windows.Forms/tests/UnitTests/System/Windows/Forms/MDITests.cs
Outdated
Show resolved
Hide resolved
...sts/UnitTests/System/Windows/Forms/PropertyGridView.PropertyGridViewAccessibleObjectTests.cs
Outdated
Show resolved
Hide resolved
src/System.Windows.Forms/tests/UnitTests/System/Windows/Forms/ImageListTests.cs
Outdated
Show resolved
Hide resolved
6b5d224
to
f39c947
Compare
d65e3c3
to
59fabf4
Compare
59fabf4
to
54b4958
Compare
5a4eb4c
to
b7e6ecd
Compare
src/System.Windows.Forms/tests/IntegrationTests/UIIntegrationTests/ImageListTests.cs
Show resolved
Hide resolved
}; | ||
childForm.MdiParent = form; | ||
|
||
form.Show(); |
There was a problem hiding this comment.
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.
src/System.Windows.Forms/tests/IntegrationTests/UIIntegrationTests/PropertyGridViewTests.cs
Outdated
Show resolved
Hide resolved
b7e6ecd
to
2ebd151
Compare
src/System.Windows.Forms/tests/IntegrationTests/UIIntegrationTests/MDITests.cs
Outdated
Show resolved
Hide resolved
2ebd151
to
4e09ec7
Compare
f4d03f0
to
ef7a09a
Compare
src/System.Windows.Forms/tests/IntegrationTests/UIIntegrationTests/MDITests.cs
Outdated
Show resolved
Hide resolved
3f996cc
to
e14bb90
Compare
e14bb90
to
ec1a540
Compare
Partially implements #3617
Proposed changes
Microsoft Reviewers: Open in CodeFlow