-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Add code coverage for ToolStripManagerModalMenuFilterHostedWindowsFor… #13762
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
base: main
Are you sure you want to change the base?
Conversation
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.
Pull Request Overview
This PR adds unit tests for the ToolStripManagerModalMenuFilterHostedWindowsFormsMessageHook
class to improve code coverage. The tests verify basic functionality of constructor, message hook installation, and uninstallation methods.
Key changes:
- Added comprehensive unit test coverage for a previously untested internal class
- Tests verify proper state management for message hook installation/uninstallation
- Uses reflection and TestAccessor to test internal implementation details
...ms/System/Windows/Forms/ToolStripManagerModalMenuFilterHostedWindowsFormsMessageHookTests.cs
Show resolved
Hide resolved
...ms/System/Windows/Forms/ToolStripManagerModalMenuFilterHostedWindowsFormsMessageHookTests.cs
Show resolved
Hide resolved
...ms/System/Windows/Forms/ToolStripManagerModalMenuFilterHostedWindowsFormsMessageHookTests.cs
Show resolved
Hide resolved
...ms/System/Windows/Forms/ToolStripManagerModalMenuFilterHostedWindowsFormsMessageHookTests.cs
Outdated
Show resolved
Hide resolved
...ms/System/Windows/Forms/ToolStripManagerModalMenuFilterHostedWindowsFormsMessageHookTests.cs
Outdated
Show resolved
Hide resolved
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!
Related #13442
Proposed changes
Add unit test file:ToolStripManagerModalMenuFilterHostedWindowsFormsMessageHookTests.cs for public/protected methods/properties of the ToolStripManagerModalMenuFilterHostedWindowsFormsMessageHook.cs
Microsoft Reviewers: Open in CodeFlow