-
Notifications
You must be signed in to change notification settings - Fork 1k
Add unit test for ToolStrip.ToolStripAccessibleObjectWrapperForItemsOnOverflow.cs file #13793
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?
Add unit test for ToolStrip.ToolStripAccessibleObjectWrapperForItemsOnOverflow.cs file #13793
Conversation
…nOverflow.cs file
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #13793 +/- ##
===================================================
- Coverage 77.08387% 77.08240% -0.00147%
===================================================
Files 3271 3273 +2
Lines 644354 644893 +539
Branches 47658 47686 +28
===================================================
+ Hits 496693 497099 +406
- Misses 143981 144137 +156
+ Partials 3680 3657 -23
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
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 a unit test to improve test coverage for the ToolStripAccessibleObjectWrapperForItemsOnOverflow
class. The change adds testing for the State
property to verify that overflow items correctly report their accessibility state as both offscreen and invisible.
Key Changes
- Added a new test method to verify the
State
property behavior for overflow items - Used FluentAssertions syntax to validate that the state includes both
Offscreen
andInvisible
flags
...ms/System/Windows/Forms/ToolStrip.ToolStripAccessibleObjectWrapperForItemsOnOverflowTests.cs
Outdated
Show resolved
Hide resolved
…rip.ToolStripAccessibleObjectWrapperForItemsOnOverflowTests.cs fix copilot suggestion Co-authored-by: Copilot <[email protected]>
...ms/System/Windows/Forms/ToolStrip.ToolStripAccessibleObjectWrapperForItemsOnOverflowTests.cs
Outdated
Show resolved
Hide resolved
...ms/System/Windows/Forms/ToolStrip.ToolStripAccessibleObjectWrapperForItemsOnOverflowTests.cs
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!
Add more test for uncovered public method of ToolStrip.ToolStripAccessibleObjectWrapperForItemsOnOverflow.cs file to get a full coverage.
Microsoft Reviewers: Open in CodeFlow