Skip to content

Test that Color deserialization rejects a true marker - #1107

Merged
AArnott merged 1 commit into
v1.4from
fix-color-true-test
Oct 7, 2026
Merged

AArnott merged 1 commit into
v1.4from
fix-color-true-test

Conversation

@AArnott

@AArnott AArnott commented Oct 7, 2026

Copy link
Copy Markdown
Owner

Adds coverage for the reserved boolean true rejection path in SystemDrawingColorConverter added in #1103, per the Copilot review on #1106. Test-only change.

Covers the reserved boolean true rejection path added in #1103.
Copilot AI balanced review requested due to automatic review settings October 7, 2026 15:18
@AArnott
AArnott enabled auto-merge (squash) October 7, 2026 15:18

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.

🟢 Approval recommended

The focused test correctly exercises the intended converter branch with no unresolved issues.

0 open findings

What changed in this PR

Adds focused regression coverage ensuring SystemDrawingColorConverter rejects MessagePack true.

Changes:

  • Serializes a true marker.
  • Verifies Color deserialization throws MessagePackSerializationException.
File Description
test/​Nerdbank.MessagePack.TUnit/​BuiltInConverterTests.cs Adds the rejection-path test.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@AArnott AArnott closed this Oct 7, 2026
auto-merge was automatically disabled October 7, 2026 15:32

Pull request was closed

@AArnott AArnott reopened this Oct 7, 2026
@AArnott
AArnott enabled auto-merge (squash) October 7, 2026 15:36
@codecov

codecov Bot commented Oct 7, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 82.83%. Comparing base (f09460f) to head (f65025c).

Additional details and impacted files
@@            Coverage Diff             @@
##             v1.4    #1107      +/-   ##
==========================================
- Coverage   82.85%   82.83%   -0.03%     
==========================================
  Files         259      259              
  Lines       21327    21333       +6     
  Branches     2814     2814              
==========================================
  Hits        17671    17671              
- Misses       2756     2763       +7     
+ Partials      900      899       -1     
Flag Coverage Δ
Linux 82.32% <100.00%> (-0.09%) ⬇️
Windows 82.56% <100.00%> (-0.02%) ⬇️
macOS 82.29% <100.00%> (+0.01%) ⬆️

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

☔ View full report in Codecov by Harness.
📢 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.

@AArnott
AArnott merged commit 9cc1acb into v1.4 Oct 7, 2026
9 of 10 checks passed
@AArnott
AArnott deleted the fix-color-true-test branch October 7, 2026 16:21
@AArnott AArnott added this to the 1.4 milestone Oct 7, 2026
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.

2 participants