-
Notifications
You must be signed in to change notification settings - Fork 1k
Add coverage for ToolStripContainer_ToolStripContainerTypedContro… #13527
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?
Add coverage for ToolStripContainer_ToolStripContainerTypedContro… #13527
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #13527 +/- ##
===================================================
+ Coverage 76.59900% 76.60793% +0.00892%
===================================================
Files 3230 3231 +1
Lines 639165 639221 +56
Branches 47297 47295 -2
===================================================
+ Hits 489594 489694 +100
+ Misses 145989 145954 -35
+ Partials 3582 3573 -9
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.
Pull Request Overview
This PR adds unit tests for the ToolStripContainerTypedControlCollection to verify the collection’s behavior under various conditions (e.g., adding null values, handling read-only collections, and adding/removing valid and invalid control types).
- Adds tests for adding a null value and confirming no changes occur
- Validates exception throwing when the collection is read-only or when an invalid control type is added/removed
- Verifies proper behavior for setting child indices for valid control types
...rms/System/Windows/Forms/ToolStripContainer.ToolStripContainerTypedControlCollectionTests.cs
Outdated
Show resolved
Hide resolved
...rms/System/Windows/Forms/ToolStripContainer.ToolStripContainerTypedControlCollectionTests.cs
Outdated
Show resolved
Hide resolved
...rms/System/Windows/Forms/ToolStripContainer.ToolStripContainerTypedControlCollectionTests.cs
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 #13442
Proposed changes
Microsoft Reviewers: Open in CodeFlow