Skip to content

Add unit test for ArrayElementGridEntry.cs file #13537

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

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

Conversation

Philip-Wang01
Copy link
Contributor

@Philip-Wang01 Philip-Wang01 commented May 29, 2025

Related #13442

Proposed changes

  • Add unit test file: ArrayElementGridEntryTests.cs for ArrayElementGridEntry.cs file.
Microsoft Reviewers: Open in CodeFlow

Copy link

codecov bot commented May 29, 2025

Codecov Report

Attention: Patch coverage is 92.00000% with 2 lines in your changes missing coverage. Please review.

Project coverage is 76.59980%. Comparing base (5821493) to head (4d05f63).
Report is 23 commits behind head on main.

Additional details and impacted files
@@                 Coverage Diff                  @@
##                main      #13537          +/-   ##
====================================================
+ Coverage   62.21083%   76.59980%   +14.38897%     
====================================================
  Files           3213        3231          +18     
  Lines         638302      639174         +872     
  Branches       47201       47295          +94     
====================================================
+ Hits          397093      489606       +92513     
+ Misses        234153      145994       -88159     
+ Partials        7056        3574        -3482     
Flag Coverage Δ
Debug 76.59980% <92.00000%> (+14.38897%) ⬆️
integration 18.79901% <ø> (+0.01022%) ⬆️
production 51.00561% <ø> (+32.21683%) ⬆️
test 97.40372% <92.00000%> (-0.00039%) ⬇️
unit 48.40365% <ø> (?)

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@ricardobossan ricardobossan requested a review from Copilot May 29, 2025 19:50
Copy link

@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.

Pull Request Overview

This pull request adds a unit test file to verify the behavior of ArrayElementGridEntry from the PropertyGridInternal.

  • Introduces ArrayElementGridEntryTests.cs to test the constructor and key properties of ArrayElementGridEntry.
  • Verifies that the label, grid item type, property type, and property value behave as expected when reading and writing.

@ricardobossan ricardobossan added the waiting-author-feedback The team requires more information from the author label May 29, 2025
@dotnet-policy-service dotnet-policy-service bot removed the waiting-author-feedback The team requires more information from the author label May 30, 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.

Thank you!

@ricardobossan ricardobossan added the waiting-review This item is waiting on review by one or more members of team label May 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-test coverage waiting-review This item is waiting on review by one or more members of team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants