Skip to content

Ensure that classes in the System.Windows.Forms namespace have adequate unit test coverage #13442

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
48 tasks
LeafShi1 opened this issue May 12, 2025 · 0 comments
Open
48 tasks
Labels
test-enhancement Improvements of test source code

Comments

@LeafShi1
Copy link
Member

LeafShi1 commented May 12, 2025

Please start with classes with coverage below 20% (marked in red in the codecov.io, and prioritize public and protected virtual methods.

  • Controls/Buttons:

    • ButtonRenderer.cs - 19.88%
    • ButtonFlatAdapter.cs – 14.91%
    • ButtonPopupAdapter.cs – 16.39%
    • CheckBoxBaseAdapter.cs – 16.97%
    • CheckBoxFlatAdapter.cs – 4.48%
    • CheckBoxPopupAdapter.cs – 2.59%
    • RadioButtonBaseAdapter.cs – 9.27%
    • RadioButtonFlatAdapter.cs – 1.64%
    • RadioButtonPopupAdapter.cs – 1.52%
  • DataGridView:

    • DataGridViewButtonCell.DataGridViewButtonCellRenderer.cs – 0.00%
    • DataGridViewButtonCell.cs – 6.16%
    • DataGridViewCheckBoxCell.DataGridViewCheckBoxCellRenderer.cs – 0.00%
    • DataGridViewComboBoxCell.DataGridViewComboBoxCellRenderer.cs – 0.00%
    • DataGridViewComboBoxCell.cs – 15.49%
    • DataGridViewComboBoxColumn.cs – 7.12%
    • DataGridViewImageCell.cs – 8.13%
    • DataGridViewImageColumn.cs – 11.18%
    • DataGridViewLinkCell.cs – 11.97%
  • DateTimePicker:

    • DateTimePicker.EnumChildren.cs - 0%
  • ImageList:

    • ImageListConverter.cs
  • ListView:

    • ListView.CheckedListViewItemCollection.cs – 18.34%
    • ListView.IconComparer.cs – 0.00%
    • ListView.ListViewItemCollection.IInnerList.cs – 0.00%
    • ListViewItemStateImageIndexConverter.cs – 15.22%
  • PropertyGrid/PropertyGridInternal:

    • ArrayElementGridEntry.cs – 0.00%
    • GridEntryRecreateChildrenEventArgs.cs – 0.00%
    • GridToolTip.cs – 19.17%
    • MergePropertyDescriptor.MultiMergeCollection.cs – 0.00%
    • MultiPropertyDescriptorGridEntry.cs – 6.77%
    • PropertyDescriptorGridEntry.ExceptionConverter.cs – 0.00%
    • PropertyDescriptorGridEntry.ExceptionEditor.cs – 0.00%
    • PropertyGridCommands.cs – 0.00%
  • Splitter:

    • Splitter.SplitterMessageFilter.cs - 0%
  • TabControl:

    • TabRenderer.cs - 0%
  • ToolStrips:

    • ToolStrip.RestoreFocusMessageFilter.cs – 14.81%
    • ToolStripContainer.ToolStripContainerTypedControlCollection.cs – 13.33%
    • ToolStripManager.ModalMenuFilter.HostedWindowsFormsMessageHook.cs – 0.00%
    • ToolStripPanel.FeedbackRectangle.FeedbackDropDown.cs – 0.00%
    • ToolStripPanel.FeedbackRectangle.cs – 0.00%
    • ToolStripProfessionalLowResolutionRenderer.cs – 0.00%
  • UpDown:

    • DomainUpDown.DomainItemAccessibleObject.cs – 0.00%
    • DomainUpDown.DomainUpDownAccessibleObject.cs – 0.00%
    • UpDownBase.UpDownBaseAccessibleObject.cs – 16.67%
  • WebBrowser:

    • HtmlElementErrorEventArgs.cs – 0.00%
    • HtmlHistory.cs – 0.00%
    • HtmlWindow.HTMLWindowEvents2.cs – 0.00%
    • WebBrowserContainer.cs – 11.70%
    • WebBrowserUriTypeConverter.cs – 0.00%
@LeafShi1 LeafShi1 added test-enhancement Improvements of test source code and removed needs-area-label labels May 12, 2025
@LeafShi1 LeafShi1 changed the title Ensure that Button-related classes under the namespace "System.Windows.Forms" have at least 80% unit test coverage Ensure that classes in the System.Windows.Forms namespace have adequate unit test coverage May 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test-enhancement Improvements of test source code
Projects
None yet
Development

No branches or pull requests

1 participant