Skip to content

Conversation

Olina-Zhang
Copy link
Member

@Olina-Zhang Olina-Zhang commented Aug 8, 2025

Add more test for uncovered public method of ToolStrip.ToolStripAccessibleObjectWrapperForItemsOnOverflow.cs file to get a full coverage.

Microsoft Reviewers: Open in CodeFlow

Copy link

codecov bot commented Aug 8, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 77.08240%. Comparing base (1a08ff2) to head (dd7cbc6).
⚠️ Report is 28 commits behind head on main.

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     
Flag Coverage Δ
Debug 77.08240% <100.00000%> (-0.00147%) ⬇️
integration 18.85316% <ø> (-0.13747%) ⬇️
production 51.86705% <ø> (-0.02149%) ⬇️
test 97.41256% <100.00000%> (-0.00353%) ⬇️
unit 49.34569% <ø> (+0.04504%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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 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 and Invisible flags

…rip.ToolStripAccessibleObjectWrapperForItemsOnOverflowTests.cs


fix copilot suggestion

Co-authored-by: Copilot <[email protected]>
@ricardobossan ricardobossan added the waiting-author-feedback The team requires more information from the author label Aug 11, 2025
@dotnet-policy-service dotnet-policy-service bot removed the waiting-author-feedback The team requires more information from the author label Aug 12, 2025
ricardobossan
ricardobossan previously approved these changes Aug 12, 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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants