winforms
winforms copied to clipboard
Add test coverage for DateTimePicker
related https://github.com/dotnet/winforms/issues/10453
Proposed changes
Add unit tests for DateTimePicker's property and event
- Properties:
-
CalendarTitleBackColor
-
CalendarForeColor
-
CalendarTitleForeColor
-
CalendarTrailingForeColor
-
CalendarMonthBackground
- Events:
-
BackColorChanged
-
BackgroundImageChanged
Customer Impact
- None
Regression?
- No
Risk
- Minimal
Test methodology
- Unit tests
Microsoft Reviewers: Open in CodeFlow
Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 73.23479%. Comparing base (
bd97476) to head (309d767). Report is 49 commits behind head on main.
Additional details and impacted files
@@ Coverage Diff @@
## main #11033 +/- ##
===================================================
+ Coverage 73.17333% 73.23479% +0.06145%
===================================================
Files 3097 3096 -1
Lines 633955 633692 -263
Branches 47364 47336 -28
===================================================
+ Hits 463886 464083 +197
+ Misses 166522 166068 -454
+ Partials 3547 3541 -6
| Flag | Coverage Δ | |
|---|---|---|
| Debug | 73.23479% <100.00000%> (+0.06145%) |
:arrow_up: |
| integration | 18.42694% <ø> (-0.02383%) |
:arrow_down: |
| production | 46.72867% <ø> (+0.05459%) |
:arrow_up: |
| test | 94.98054% <100.00000%> (+0.00600%) |
:arrow_up: |
| unit | 43.60773% <ø> (+0.06247%) |
:arrow_up: |
Flags with carried forward coverage won't be shown. Click here to find out more.
@lonitra Please help review this PR