Skip to content

Add test cases for PropertyGrid.AddTab - #14574

Closed
SimonZhao888 wants to merge 3 commits into
dotnet:mainfrom
SimonZhao888:Add_testcase_PropertyGrid
Closed

SimonZhao888 wants to merge 3 commits into
dotnet:mainfrom
SimonZhao888:Add_testcase_PropertyGrid

Conversation

@SimonZhao888

@SimonZhao888 SimonZhao888 commented May 29, 2026 •

Copy link
Copy Markdown
Member

Related #12055

Proposed changes

  • Add tests for PropertyGrid.AddTab
Microsoft Reviewers: Open in CodeFlow

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds unit test coverage for PropertyGrid.AddTab, supporting the broader effort to improve PropertyGrid coverage from issue #12055.

Changes:

  • Adds tests for adding a new tab type.
  • Adds coverage for duplicate tab type insertion behavior.
  • Adds coverage for associating one or multiple components with a tab.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@SimonZhao888 SimonZhao888 changed the title Add test cases for PropertyGrid.AddTab Add test cases for PropertyGrid.ClearTabs Jun 4, 2026
@SimonZhao888 SimonZhao888 changed the title Add test cases for PropertyGrid.ClearTabs Add test cases for PropertyGrid.AddTab Jun 4, 2026

@ricardobossan ricardobossan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Other than a small comment, all LGTM!


// AddTab does not unconditionally append; it picks an insertion index
// based on tab kind and alphabetical order. Insertion order is verified
// separately by PropertyGrid_AddTab_OrdersCustomTabsAlphabetically.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This 'PropertyGrid_AddTab_OrdersCustomTabsAlphabetically' no longer exists, so it should not be referenced in this comment.

@github-actions github-actions Bot locked and limited conversation to collaborators Jul 11, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants