Skip to content

Unit test coverage for the PropertyGrid class #12055

@LeafShi1

Description

@LeafShi1

Currently the unit test coverage of the PropertyGrid is 49.91%

image

The following code lacks unit test coverage. For details, please refer to Code Coverage

The code line under Constructor:

  • if (ScaleHelper.IsThreadPerMonitorV2Aware)
  • catch (Exception ex) when (!ex.IsCriticalException())

Functions:

Properties:

  • ActiveDesigner if (_rootEntry is not null)
  • CanCopy
  • CanCut
  • CanPaste
  • CanUndo
  • CommandsVisibleIfAvailable if (hotcommandsVisible != _commandsPane.Visible)
  • FreezePainting get => _paintFrozen > 0;
  • GridViewVisible
  • PropertySort if (selectedGridItem is not null)
  • SelectedObjects Set method
  • SortedByCategories
  • ToolStripRenderer Get method
  • IComPropertyBrowser.ComComponentNameChanged
  • PropertyTabChanged Remove method
  • SelectedGridItemChanged Remove method
  • InPropertySet
  • UseCompatibleTextRendering Set method

Metadata

Metadata

Assignees

Labels

test-bugProblem in test source code (most likely)

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions