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 DesignerFrame #12712

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

Nora-Zhou01
Copy link
Member

@Nora-Zhou01 Nora-Zhou01 commented Jan 6, 2025

Related #10773

Proposed changes

  • Add unit test DesignerFrameTests.cs for public properties and method of the DesignerFrame
  • Enable nullability in DesignerFrameTests.cs
Microsoft Reviewers: Open in CodeFlow

Copy link

codecov bot commented Jan 6, 2025

Codecov Report

Attention: Patch coverage is 98.98990% with 1 line in your changes missing coverage. Please review.

Project coverage is 76.21260%. Comparing base (e91e3bc) to head (d670819).
Report is 167 commits behind head on main.

Additional details and impacted files
@@                 Coverage Diff                 @@
##                main      #12712         +/-   ##
===================================================
+ Coverage   75.75455%   76.21260%   +0.45805%     
===================================================
  Files           3159        3181         +22     
  Lines         635942      640196       +4254     
  Branches       46987       47185        +198     
===================================================
+ Hits          481755      487910       +6155     
+ Misses        150726      148768       -1958     
- Partials        3461        3518         +57     
Flag Coverage Δ
Debug 76.21260% <98.98990%> (+0.45805%) ⬆️
integration 18.14285% <ø> (-0.03193%) ⬇️
production 50.10999% <ø> (+0.79244%) ⬆️
test 97.04130% <98.98990%> (-0.00376%) ⬇️
unit 47.50516% <ø> (+0.97345%) ⬆️

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

@ricardobossan ricardobossan added the 📭 waiting-author-feedback The team requires more information from the author label Jan 6, 2025
@dotnet-policy-service dotnet-policy-service bot removed the 📭 waiting-author-feedback The team requires more information from the author label Jan 9, 2025
@Tanya-Solyanik Tanya-Solyanik added the 📭 waiting-author-feedback The team requires more information from the author label Jan 9, 2025
@dotnet-policy-service dotnet-policy-service bot removed the 📭 waiting-author-feedback The team requires more information from the author label Jan 10, 2025
@ricardobossan ricardobossan added the 📭 waiting-author-feedback The team requires more information from the author label Jan 15, 2025
@dotnet-policy-service dotnet-policy-service bot removed the 📭 waiting-author-feedback The team requires more information from the author label Jan 16, 2025
@Tanya-Solyanik Tanya-Solyanik added the 📭 waiting-author-feedback The team requires more information from the author label Jan 16, 2025
@dotnet-policy-service dotnet-policy-service bot removed the 📭 waiting-author-feedback The team requires more information from the author label Jan 17, 2025

public DesignerFrameTests() { }

public void Dispose() { }
Copy link
Member

Choose a reason for hiding this comment

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

This method is now unnecessary since there are no remaining objects to dispose of. Similarly, inheriting from the IDisposable interface is no longer needed.

{
private readonly Mock<ISite> _mockSite = new();

public DesignerFrameTests() { }
Copy link
Member

Choose a reason for hiding this comment

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

This constructor is no longer needed and can be erased.

@ricardobossan ricardobossan added the 📭 waiting-author-feedback The team requires more information from the author label Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📭 waiting-author-feedback The team requires more information from the author
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants