Skip to content

Adds some specific serialization test cases for the ToolStripMenuItemCodeDomSerializer class #13200

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

Conversation

ricardobossan
Copy link
Member

@ricardobossan ricardobossan commented Mar 28, 2025

Related #10773
Related #12883

Root Cause

Proposed changes

  • Adds some specific serialization test cases for the ToolStripMenuItemCodeDomSerializer class.

Customer Impact

  • None

Risk

  • Minimal

Test methodology

  • Unit tests

Test environment(s)

  • 10.0.100-preview.3.25167.3
Microsoft Reviewers: Open in CodeFlow

@ricardobossan ricardobossan added the waiting-review This item is waiting on review by one or more members of team label Mar 28, 2025
@ricardobossan ricardobossan self-assigned this Mar 28, 2025
@ricardobossan ricardobossan requested a review from a team as a code owner March 28, 2025 19:20
Copy link

@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 new unit tests for the ToolStripMenuItemCodeDomSerializer class to ensure specific serialization behaviors for drop-down items, enabled state, checked status & text, and image properties.

  • Adds test case for serializing drop-down items.
  • Adds test case for serializing the Enabled property.
  • Adds test cases for serializing Checked, Text, and Image properties.

…mCodeDomSerializer` class

Related dotnet#10773
Related dotnet#12883

- After the merging of dotnet#12883, [there was a request](dotnet#12883 (comment)) for some specific serialization test cases of the `ToolStripMenuItemCodeDomSerializer` class.

- Adds some specific serialization test cases for the `ToolStripMenuItemCodeDomSerializer` class.

- None

- Minimal

- Unit tests

- 10.0.100-preview.3.25167.3
@ricardobossan ricardobossan force-pushed the Adds_Specific_Serialization_Test_Cases_To_ToolStripMenuItemCodeDomSerializer branch from a9c4ecb to 1cd5d8b Compare March 28, 2025 19:30
Copy link

codecov bot commented Mar 31, 2025

Codecov Report

Attention: Patch coverage is 94.33962% with 3 lines in your changes missing coverage. Please review.

Project coverage is 61.54850%. Comparing base (93985d0) to head (1367a8d).
Report is 30 commits behind head on main.

Additional details and impacted files
@@                 Coverage Diff                 @@
##                main      #13200         +/-   ##
===================================================
+ Coverage   61.42016%   61.54850%   +0.12833%     
===================================================
  Files           1548        1549          +1     
  Lines         158588      158670         +82     
  Branches       14758       14763          +5     
===================================================
+ Hits           97405       97659        +254     
+ Misses         60480       60304        -176     
- Partials         703         707          +4     
Flag Coverage Δ
Debug 61.54850% <94.33962%> (+0.12833%) ⬆️
integration 10.73095% <ø> (-0.00090%) ⬇️
production 39.48529% <ø> (+0.18768%) ⬆️
test 95.67290% <94.33962%> (-0.00129%) ⬇️
unit 36.92523% <ø> (+0.18892%) ⬆️

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
Member

@LeafShi1 LeafShi1 left a comment

Choose a reason for hiding this comment

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

LGTM with a little suggestion

Copy link
Contributor

@Tanya-Solyanik Tanya-Solyanik left a comment

Choose a reason for hiding this comment

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

Overall looks good, but please address Leaf's comment

@Tanya-Solyanik Tanya-Solyanik added waiting-author-feedback The team requires more information from the author and removed waiting-review This item is waiting on review by one or more members of team labels Mar 31, 2025
@ricardobossan ricardobossan added waiting-review This item is waiting on review by one or more members of team and removed waiting-author-feedback The team requires more information from the author labels Apr 1, 2025
Copy link
Contributor

@Tanya-Solyanik Tanya-Solyanik 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!

@Tanya-Solyanik Tanya-Solyanik added area-test coverage and removed waiting-review This item is waiting on review by one or more members of team area-Infrastructure labels Apr 3, 2025
@Tanya-Solyanik Tanya-Solyanik merged commit 055d6c2 into dotnet:main Apr 3, 2025
8 checks passed
@dotnet-policy-service dotnet-policy-service bot added this to the 10.0 Preview4 milestone Apr 3, 2025
@github-actions github-actions bot locked and limited conversation to collaborators May 4, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants