-
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
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.61590% +0.01689%
===================================================
Files 3230 3238 +8
Lines 639165 639550 +385
Branches 47297 47319 +22
===================================================
+ Hits 489594 489997 +403
- Misses 145989 146022 +33
+ Partials 3582 3531 -51
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!
...rms/System/Windows/Forms/ToolStripContainer.ToolStripContainerTypedControlCollectionTests.cs
Show resolved
Hide resolved
…otnet#13527) * Add ode coverage for ToolStripContainer_ToolStripContainerTypedControlCollection * Handle feedback! * Updated!
Related #13442
Proposed changes
Microsoft Reviewers: Open in CodeFlow