8000 Add code coverage for ListBoxSelectedObjectCollection by Zheng-Li01 · Pull Request #12952 · dotnet/winforms · GitHub
[go: up one dir, main page]

Skip to content

Add code coverage for ListBoxSelectedObjectCollection #12952

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

Conversation

Zheng-Li01
Copy link
Member
@Zheng-Li01 Zheng-Li01 commented Feb 14, 2025

related #10453

Proposed changes

Add unit tests for ListBox.SelectedObjectCollection.cs to test its methods

Microsoft Reviewers: Open in CodeFlow

Copy link
codecov bot commented Feb 14, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 75.99080%. Comparing base (e173bae) to head (5df6d6e).
Report is 42 commits behind head on main.

Additional details and impacted files
@@                 Coverage Diff                 @@
##                main      #12952         +/-   ##
===================================================
- Coverage   76.08036%   75.99080%   -0.08957%     
===================================================
  Files           3255        3265         +10     
  Lines         642192      643391       +1199     
  Branches       47295       47433        +138     
===================================================
+ Hits          488582      488918        +336     
- Misses        150056      150911        +855     
- Partials        3554        3562          +8     
Flag Coverage Δ
Debug 75.99080% <100.00000%> (-0.08957%) ⬇️
integration 18.03169% <ø> (-0.04661%) ⬇️
production 49.90109% <ø> (-0.10784%) ⬇️
test 96.95043% <100.00000%> (-0.01530%) ⬇️
unit 47.35625% <ø> (-0.07840%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Copy link
8000
@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 1 out of 1 changed files in this pull request and generated no comments.

@ricardobossan ricardobossan added the waiting-author-feedback The team requires more information from the author label Feb 14, 2025
@Zheng-Li01 Zheng-Li01 added waiting-review This item is waiting on review by one or more members of team and removed waiting-author-feedback The team requires more information from the author labels Feb 17, 2025
@ricardobossan ricardobossan added waiting-author-feedback The team requires more information from the author and removed waiting-review This item is waiting on review by one or more members of team labels Feb 17, 2025
@Zheng-Li01 Zheng-Li01 added waiting-review This item is waiting on review by one or more members of team and removed waiting-author-feedback The team requires more information from the author labels Feb 18, 2025
Copy link
Member
@ricardobossan ricardobossan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other than small comments, LGTM!

Comment on lines 27 to 28
public void ListBoxSelectedObjectCollection_Ctor_ListBox() =>
Assert.True(_collection.IsReadOnly);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When breaking an expression-bodied method into multiple lines, please place the arrow operator on the line below, directly before the method body.

This happens in other methods as well.

Copy link
Contributor
@Tanya-Solyanik Tanya-Solyanik Feb 19, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the clarification, @Tanya-Solyanik! I had read the style guide before but got the formatting mixed up. I’ll make sure to follow the right approach going forward.

Copy link
Member
@ricardobossan ricardobossan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@ricardobossan ricardobossan removed the waiting-review This item is waiting on review by one or more members of team label Feb 19, 2025
Copy link
Contributor
@Tanya-Solyanik Tanya-Solyanik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@Tanya-Solyanik Tanya-Solyanik merged commit cc63bc6 into dotnet:main Feb 19, 2025
8 checks passed
@dotnet-policy-service dotnet-policy-service bot added this to the 10.0 Preview3 milestone Feb 19, 2025
@Zheng-Li01 Zheng-Li01 deleted the Add_code_coverage_for_ListBoxSelectedObjectCollection branch February 27, 2025 07:08
@github-actions github-actions bot locked and limited conversation to collaborators Mar 29, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0