-
Notifications
You must be signed in to change notification settings - Fork 1k
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 code coverage for DataGridViewColumnTypePicker #13055
Add code coverage for DataGridViewColumnTypePicker #13055
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #13055 +/- ##
====================================================
- Coverage 76.10018% 61.08310% -15.01708%
====================================================
Files 3275 1540 -1735
Lines 643804 158083 -485721
Branches 47445 14727 -32718
====================================================
- Hits 489936 96562 -393374
+ Misses 150301 60827 -89474
+ Partials 3567 694 -2873
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.
PR Overview
This pull request adds unit tests for the DataGridViewColumnTypePicker class to improve code coverage.
- Introduces a new test file with various tests for control initialization, property setting, and event handling.
- Verifies that the picker initializes its ListBox correctly, sets visual properties, and handles type selection appropriately.
Reviewed Changes
File | Description |
---|---|
src/System.Windows.Forms.Design/tests/UnitTests/System/Windows/Forms/Design/DataGridViewColumnTypePickerTests.cs | New unit tests to validate the behavior of DataGridViewColumnTypePicker |
Copilot reviewed 1 out of 1 changed files in this pull request and generated 2 comments.
...orms.Design/tests/UnitTests/System/Windows/Forms/Design/DataGridViewColumnTypePickerTests.cs
Show resolved
Hide resolved
...orms.Design/tests/UnitTests/System/Windows/Forms/Design/DataGridViewColumnTypePickerTests.cs
Show resolved
Hide resolved
...orms.Design/tests/UnitTests/System/Windows/Forms/Design/DataGridViewColumnTypePickerTests.cs
Show resolved
Hide resolved
...orms.Design/tests/UnitTests/System/Windows/Forms/Design/DataGridViewColumnTypePickerTests.cs
Outdated
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 #10773
Proposed changes
Add unit test file: DataGridViewColumnTypePicker.cs for public methods of the DataGridViewColumnTypePicker.cs
Microsoft Reviewers: Open in CodeFlow