-
Notifications
You must be signed in to change notification settings - Fork 1k
Adds code coverage to StandardMenuStripVerb #13492
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?
Adds code coverage to StandardMenuStripVerb #13492
Conversation
Related dotnet#10773 ## Proposed changes - Adds code coverage to `StandardMenuStripVerb` ## Customer Impact - None ## Regression? - No ## Risk - Minimal ## Test methodology - Unit tests ## Test environment(s) - 10.0.100-preview.5.25265.106
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
Adds unit tests to improve code coverage of StandardMenuStripVerb
, verifying its constructor and item insertion behavior.
- Introduces
StandardMenuStripVerbTests
with extensive Moq setup for designer host and services. - Adds tests for the class constructor and the
InsertItems
method.
Comments suppressed due to low confidence (1)
src/System.Windows.Forms.Design/tests/UnitTests/System/Windows/Forms/Design/StandardMenuStripVerbTests.cs:108
- [nitpick] Currently only the constructor and
InsertItems
are verified. Consider adding tests for other behaviors (e.g., error paths, multiple inserts) to fully coverStandardMenuStripVerb
.
[WinFormsFact]
...ndows.Forms.Design/tests/UnitTests/System/Windows/Forms/Design/StandardMenuStripVerbTests.cs
Show resolved
Hide resolved
...ndows.Forms.Design/tests/UnitTests/System/Windows/Forms/Design/StandardMenuStripVerbTests.cs
Show resolved
Hide resolved
...ndows.Forms.Design/tests/UnitTests/System/Windows/Forms/Design/StandardMenuStripVerbTests.cs
Show resolved
Hide resolved
...ndows.Forms.Design/tests/UnitTests/System/Windows/Forms/Design/StandardMenuStripVerbTests.cs
Outdated
Show resolved
Hide resolved
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #13492 +/- ##
===================================================
+ Coverage 76.59683% 76.63742% +0.04059%
===================================================
Files 3230 3231 +1
Lines 639157 639253 +96
Branches 47295 47304 +9
===================================================
+ Hits 489574 489907 +333
+ Misses 146007 145765 -242
- Partials 3576 3581 +5
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
src/System.Windows.Forms.Design/src/System/Windows/Forms/Design/StandardMenuStripVerb.cs
Outdated
Show resolved
Hide resolved
Co-authored-by: Klaus Löffelmann <9663150+KlausLoeffelmann@users.noreply.github.com>
Related #10773
Proposed changes
StandardMenuStripVerb
Customer Impact
Regression?
Risk
Test methodology
Test environment(s)
Microsoft Reviewers: Open in CodeFlow