-
Notifications
You must be signed in to change notification settings - Fork 1k
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
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 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
a9c4ecb
to
1cd5d8b
Compare
Codecov ReportAttention: Patch coverage is
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
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.
LGTM with a little suggestion
...esign/tests/UnitTests/System/Windows/Forms/Design/ToolStripMenuItemCodeDomSerializerTests.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.
Overall looks good, but please address Leaf's comment
...esign/tests/UnitTests/System/Windows/Forms/Design/ToolStripMenuItemCodeDomSerializerTests.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 #10773
Related #12883
Root Cause
ToolStripMenuItemCodeDomSerializer
class.Proposed changes
ToolStripMenuItemCodeDomSerializer
class.Customer Impact
Risk
Test methodology
Test environment(s)
Microsoft Reviewers: Open in CodeFlow