-
Notifications
You must be signed in to change notification settings - Fork 1k
Add code coverage for DataGridViewImageColumn #13547
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 code coverage for DataGridViewImageColumn #13547
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #13547 +/- ##
====================================================
+ Coverage 62.21083% 97.41463% +35.20380%
====================================================
Files 3213 1188 -2025
Lines 638302 353064 -285238
Branches 47201 5379 -41822
====================================================
- Hits 397093 343936 -53157
+ Misses 234153 8369 -225784
+ Partials 7056 759 -6297
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
Adds comprehensive unit tests for the DataGridViewImageColumn
class, covering its public properties and methods to improve code coverage.
- Introduces tests for property getters/setters:
Description
,Icon
,Image
,ImageLayout
,ValuesAreIcons
- Adds tests for
Clone()
behavior andToString()
formatting - Verifies propagation of property changes to cell templates and existing rows
src/test/unit/System.Windows.Forms/System/Windows/Forms/DataGridViewImageColumnTests.cs
Show resolved
Hide resolved
src/test/unit/System.Windows.Forms/System/Windows/Forms/DataGridViewImageColumnTests.cs
Show resolved
Hide resolved
src/test/unit/System.Windows.Forms/System/Windows/Forms/DataGridViewImageColumnTests.cs
Show resolved
Hide resolved
src/test/unit/System.Windows.Forms/System/Windows/Forms/DataGridViewImageColumnTests.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
Add unit test file:DataGridViewImageColumnTests.cs for public methods of the DataGridViewImageColumn.cs
Microsoft Reviewers: Open in CodeFlow