Skip to content

Conversation

@ChrisPulman
Copy link
Member

What kind of change does this PR introduce?

Update

What is the new behavior?

Simplifies command parameter subscription and usage by removing redundant local variables and consistently using 'latestParameter'.

Updates CompositeDisposable initialization and improves code clarity in command binding logic.

What might this PR break?

None expected

Please check if the PR fulfills these requirements

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

Other information:

Simplifies command parameter subscription and usage by removing redundant local variables and consistently using 'latestParameter'. Updates CompositeDisposable initialization and improves code clarity in command binding logic.
@codecov
Copy link

codecov bot commented Jan 24, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.78%. Comparing base (c519ba0) to head (0377091).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4278      +/-   ##
==========================================
+ Coverage   89.43%   89.78%   +0.35%     
==========================================
  Files         251      251              
  Lines        9561     9559       -2     
  Branches     1456     1456              
==========================================
+ Hits         8551     8583      +32     
+ Misses        771      741      -30     
+ Partials      239      235       -4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@glennawatson
Copy link
Contributor

Probably be worth bumping the testing up with CreatesWinformsCommandBinding.cs

Introduces a full test suite for CreatesWinformsCommandBinding, covering affinity detection, command binding for various WinForms controls and components, event handler overloads, parameter passing, enabled state synchronization, and error handling. Also adds supporting mock classes for custom controls and components used in the tests. Removes unnecessary RequiresUnreferencedCode attributes from the implementation and updates XML documentation for clarity.
@glennawatson glennawatson merged commit eec2539 into main Jan 26, 2026
6 checks passed
@glennawatson glennawatson deleted the UpdateCreatesWinformsCommandBinding branch January 26, 2026 02:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants