Skip to content

Conversation

Zheng-Li01
Copy link
Member

@Zheng-Li01 Zheng-Li01 commented Jul 30, 2025

Related #13442

Proposed changes

Add unit test file:ToolStripManagerModalMenuFilterHostedWindowsFormsMessageHookTests.cs for public/protected methods/properties of the ToolStripManagerModalMenuFilterHostedWindowsFormsMessageHook.cs

Microsoft Reviewers: Open in CodeFlow

@Zheng-Li01 Zheng-Li01 added the waiting-review This item is waiting on review by one or more members of team label Jul 30, 2025
LeafShi1
LeafShi1 previously approved these changes Aug 4, 2025
@LeafShi1 LeafShi1 requested a review from Copilot August 4, 2025 02:21
Copy link
Contributor

@Copilot Copilot AI left a 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

@dotnet-policy-service dotnet-policy-service bot added the waiting-author-feedback The team requires more information from the author label Aug 7, 2025
@dotnet-policy-service dotnet-policy-service bot removed the waiting-author-feedback The team requires more information from the author label Aug 7, 2025
Copy link
Member

@ricardobossan ricardobossan left a comment

Choose a reason for hiding this comment

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

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-test coverage waiting-review This item is waiting on review by one or more members of team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants