-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Mark Test Utilities As Packable Nonshipping #12407
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
2366756
Move WinForms specific test utilities from Common.Utilities to System…
lonitra 7b9762d
Rename System.Windows.Forms.Common.TestUtilities to System.Private.Wi…
lonitra b0d3550
Include System.Private.Windows.Core.TestUtilities in Microsoft.Privat…
lonitra b2759df
Add documentation and add HasNoPublicIntellisense to bypass build error
lonitra 4ae4130
Add global using in System.Windows.Forms unit test
lonitra 7646efb
Mark System.Private.Windows.Core.TestUtilities as packable but nonshi…
lonitra a0eaa37
remove HasNoPublicIntellisense
lonitra File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
...Windows.Forms.Common.TestUtilities.csproj → ...Private.Windows.Core.TestUtilities.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53 changes: 53 additions & 0 deletions
53
src/System.Windows.Forms/tests/TestUtilities/WinFormsAppContextSwitchNames.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
|
||
namespace System; | ||
|
||
public static class WinFormsAppContextSwitchNames | ||
{ | ||
/// <summary> | ||
/// The switch that controls whether AnchorLayoutV2 feature is enabled. | ||
/// </summary> | ||
public const string AnchorLayoutV2 | ||
= "System.Windows.Forms.AnchorLayoutV2"; | ||
|
||
/// <summary> | ||
/// The switch that controls whether the parent font | ||
/// (as set by <see cref="M:System.Windows.Forms.Application.SetDefaultFont(System.Drawing.Font)" /> | ||
/// or by the parent control or form's font) is applied to menus. | ||
/// </summary> | ||
public const string ApplyParentFontToMenus | ||
= "System.Windows.Forms.ApplyParentFontToMenus"; | ||
|
||
/// <summary> | ||
/// The switch that controls whether or not the DataGridView starts its UI row count at zero. | ||
/// </summary> | ||
public const string DataGridViewUIAStartRowCountAtZero | ||
= "System.Windows.Forms.DataGridViewUIAStartRowCountAtZero"; | ||
|
||
/// <summary> | ||
/// The switch that controls whether UIA notifications are raised. | ||
/// </summary> | ||
public const string NoClientNotifications | ||
= "Switch.System.Windows.Forms.AccessibleObject.NoClientNotifications"; | ||
|
||
/// <summary> | ||
/// The switch that controls whether to scale the top level form min/max size for dpi. | ||
/// </summary> | ||
public const string ScaleTopLevelFormMinMaxSizeForDpi | ||
= "System.Windows.Forms.ScaleTopLevelFormMinMaxSizeForDpi"; | ||
|
||
/// <summary> | ||
/// The switch that controls whether certificates are checked against the certificate authority revocation list. | ||
/// If true, revoked certificates will not be accepted by WebRequests and WebClients as valid. | ||
/// Otherwise, revoked certificates will be accepted as valid. | ||
/// </summary> | ||
public const string ServicePointManagerCheckCrl | ||
= "System.Windows.Forms.ServicePointManagerCheckCrl"; | ||
|
||
/// <summary> | ||
/// The switch that controls whether the TreeNodeCollection will insert nodes in the sorted order. | ||
/// </summary> | ||
public const string TreeNodeCollectionAddRangeRespectsSortOrder | ||
= "System.Windows.Forms.ApplyParentFontToMenus"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Are you going to rename the folder in a separate PR to preserve history?
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.
Right now this assembly lives under the test folder. I was not planning to rename it as I think it should still be there.
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.
I meant the
common
folderThere 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.
Ah I see. I think the folder name is still applicable, but I'm open to renaming.