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 test coverage for LinkLabel.LinkCollection #11357
base: main
Are you sure you want to change the base?
Add test coverage for LinkLabel.LinkCollection #11357
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #11357 +/- ##
===================================================
+ Coverage 74.27085% 74.30362% +0.03276%
===================================================
Files 3025 3027 +2
Lines 626861 627135 +274
Branches 46742 46756 +14
===================================================
+ Hits 465575 465984 +409
+ Misses 157937 157809 -128
+ Partials 3349 3342 -7
Flags with carried forward coverage won't be shown. Click here to find out more. |
src/System.Windows.Forms/tests/UnitTests/System/Windows/Forms/LinkCollectionTest.cs
Outdated
Show resolved
Hide resolved
src/System.Windows.Forms/tests/UnitTests/System/Windows/Forms/LinkCollectionTest.cs
Outdated
Show resolved
Hide resolved
src/System.Windows.Forms/tests/UnitTests/System/Windows/Forms/LinkCollectionTest.cs
Outdated
Show resolved
Hide resolved
src/System.Windows.Forms/tests/UnitTests/System/Windows/Forms/LinkCollectionTest.cs
Outdated
Show resolved
Hide resolved
src/System.Windows.Forms/tests/UnitTests/System/Windows/Forms/LinkCollectionTest.cs
Outdated
Show resolved
Hide resolved
For new added LinkCollectionTest.cs file, always named it to LinkCollectionTests.cs |
src/System.Windows.Forms/tests/UnitTests/System/Windows/Forms/LinkCollectionTest.cs
Outdated
Show resolved
Hide resolved
src/System.Windows.Forms/tests/UnitTests/System/Windows/Forms/LinkCollectionTest.cs
Outdated
Show resolved
Hide resolved
src/System.Windows.Forms/tests/UnitTests/System/Windows/Forms/LinkCollectionTest.cs
Outdated
Show resolved
Hide resolved
src/System.Windows.Forms/tests/UnitTests/System/Windows/Forms/LinkCollectionTest.cs
Outdated
Show resolved
Hide resolved
src/System.Windows.Forms/tests/UnitTests/System/Windows/Forms/LinkCollectionTests.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.
LGTM
Related #10453
Proposed changes
Add unit tests for LinkLabel.LinkCollection to test its properties: IsReadOnly, IndexOf, IndexOfKey
Add unit tests for LinkLabel.LinkCollection to test its method: Add, Contains, ContainsKey, Remove, RemoveByKey
Customer Impact
Regression?
Risk
Test methodology
Microsoft Reviewers: Open in CodeFlow