-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Add unit tests for StatusCommandUI #13121
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
Add unit tests for StatusCommandUI #13121
Conversation
...tem.Windows.Forms.Design/tests/UnitTests/System/Windows/Forms/Design/StatusCommandUITests.cs
Outdated
Show resolved
Hide resolved
LeafShi1
left a comment
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 one little suggestion
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 unit tests for the public method of StatusCommandUI to verify correct interactions with the command service under various input scenarios.
- Introduces tests for null components, standard controls, custom components, and explicit rectangle parameters.
- Verifies that command invocations are made with the correct rectangle values based on the input.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #13121 +/- ##
===================================================
+ Coverage 61.28152% 61.35586% +0.07433%
===================================================
Files 1541 1547 +6
Lines 158281 158482 +201
Branches 14743 14752 +9
===================================================
+ Hits 96997 97238 +241
+ Misses 60587 60542 -45
- Partials 697 702 +5
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
Tanya-Solyanik
left a comment
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.
Looks good, I added some minot comments
...tem.Windows.Forms.Design/tests/UnitTests/System/Windows/Forms/Design/StatusCommandUITests.cs
Outdated
Show resolved
Hide resolved
...tem.Windows.Forms.Design/tests/UnitTests/System/Windows/Forms/Design/StatusCommandUITests.cs
Show resolved
Hide resolved
...tem.Windows.Forms.Design/tests/UnitTests/System/Windows/Forms/Design/StatusCommandUITests.cs
Outdated
Show resolved
Hide resolved
Tanya-Solyanik
left a comment
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
Proposed changes
Microsoft Reviewers: Open in CodeFlow