dotnet / winforms

Windows Forms is a .NET UI framework for building Windows desktop applications.
MIT License
4.28k stars 954 forks source link

Add unit test case for DataGridView 10 events #11541

Closed John-Qiao closed 1 week ago

John-Qiao commented 2 weeks ago

related https://github.com/dotnet/winforms/issues/10453

Proposed changes

  1. AllowUserToAddRowsChanged
  2. AllowUserToDeleteRowsChanged
  3. AllowUserToOrderColumnsChanged
  4. AllowUserToResizeColumnsChanged
  5. AllowUserToResizeRowsChanged
  6. AlternatingRowsDefaultCellStyleChanged
  7. AutoGenerateColumnsChanged
  8. BackgroundColorChanged
  9. BorderStyleChanged
  10. CellBorderStyleChanged
Microsoft Reviewers: Open in CodeFlow
codecov[bot] commented 2 weeks ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 74.43548%. Comparing base (79472b4) to head (8cc8b48). Report is 5 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #11541 +/- ## =================================================== + Coverage 74.41004% 74.43548% +0.02544% =================================================== Files 3032 3032 Lines 628262 628414 +152 Branches 46817 46817 =================================================== + Hits 467490 467763 +273 + Misses 157420 157295 -125 - Partials 3352 3356 +4 ``` | [Flag](https://app.codecov.io/gh/dotnet/winforms/pull/11541/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dotnet) | Coverage Δ | | |---|---|---| | [Debug](https://app.codecov.io/gh/dotnet/winforms/pull/11541/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dotnet) | `74.43548% <100.00000%> (+0.02544%)` | :arrow_up: | | [integration](https://app.codecov.io/gh/dotnet/winforms/pull/11541/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dotnet) | `17.98700% <ø> (-0.00282%)` | :arrow_down: | | [production](https://app.codecov.io/gh/dotnet/winforms/pull/11541/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dotnet) | `47.29860% <ø> (+0.04245%)` | :arrow_up: | | [test](https://app.codecov.io/gh/dotnet/winforms/pull/11541/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dotnet) | `96.96715% <100.00000%> (+0.00135%)` | :arrow_up: | | [unit](https://app.codecov.io/gh/dotnet/winforms/pull/11541/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dotnet) | `44.28464% <ø> (+0.04771%)` | :arrow_up: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dotnet#carryforward-flags-in-the-pull-request-comment) to find out more.