Skip to content
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 unit tests for InheritanceUI #12016

Merged
merged 4 commits into from
Sep 11, 2024

Conversation

Syareel-Sukeri
Copy link
Contributor

@Syareel-Sukeri Syareel-Sukeri commented Aug 30, 2024

Related #10773

Proposed changes

  • Add unit test in InheritanceUI.cs for public properties and method.
  • Enable nullability in InheritanceUI.
Microsoft Reviewers: Open in CodeFlow

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 failing checks, LGTM

@Tanya-Solyanik
Copy link
Member

@ricardobossan - please add waiting for author feedback label when you leave comments on a PR.

@Tanya-Solyanik Tanya-Solyanik added the 📭 waiting-author-feedback The team requires more information from the author label Sep 1, 2024
@dotnet-policy-service dotnet-policy-service bot removed the 📭 waiting-author-feedback The team requires more information from the author label Sep 10, 2024
Copy link

codecov bot commented Sep 10, 2024

Codecov Report

Attention: Patch coverage is 89.61039% with 8 lines in your changes missing coverage. Please review.

Project coverage is 75.21714%. Comparing base (062b0fe) to head (cd5dd1b).
Report is 55 commits behind head on main.

Additional details and impacted files
@@                 Coverage Diff                 @@
##                main      #12016         +/-   ##
===================================================
+ Coverage   75.06578%   75.21714%   +0.15135%     
===================================================
  Files           3063        3076         +13     
  Lines         632075      633123       +1048     
  Branches       46784       46820         +36     
===================================================
+ Hits          474472      476217       +1745     
+ Misses        154220      153503        -717     
- Partials        3383        3403         +20     
Flag Coverage Δ
Debug 75.21714% <89.61039%> (+0.15135%) ⬆️
integration 18.02104% <ø> (+0.08539%) ⬆️
production 48.49643% <ø> (+0.28533%) ⬆️
test 97.02152% <89.61039%> (+0.00544%) ⬆️
unit 45.49701% <ø> (+0.25589%) ⬆️

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

@Syareel-Sukeri Syareel-Sukeri added the waiting-review This item is waiting on review by one or more members of team label Sep 10, 2024
@Tanya-Solyanik Tanya-Solyanik 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 Sep 10, 2024
using static System.Windows.Forms.Design.ComponentTray;

namespace System.Windows.Forms.Design.Tests;

public sealed class InheritanceUITests
public static class RectangleAssertionsExtensions
Copy link
Member

Choose a reason for hiding this comment

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

Please move to a dedicated file. Preferably in utilities namespace. Please look for a good place, where it could be reused in other test assemblies.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have moved it to src/System.Windows.Forms.Primitives/tests/TestUtilities/FluentAssertions/FluentAssertExtensions.cs. Please let me know if this is an appropriate location.

Copy link
Member

Choose a reason for hiding this comment

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

Yes, this is good, it will be accessible in other tests!

@dotnet-policy-service dotnet-policy-service bot removed the 📭 waiting-author-feedback The team requires more information from the author label Sep 11, 2024
@Syareel-Sukeri Syareel-Sukeri added the waiting-review This item is waiting on review by one or more members of team label Sep 11, 2024
Copy link
Member

@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 fed22e4 into dotnet:main Sep 11, 2024
8 checks passed
@dotnet-policy-service dotnet-policy-service bot added this to the 10.0 Preview1 milestone Sep 11, 2024
@Tanya-Solyanik Tanya-Solyanik removed the waiting-review This item is waiting on review by one or more members of team label Sep 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants