Skip to content

Refactor Assert.StringDifference into focused files#10182

Merged
Evangelink merged 2 commits into
mainfrom
dev/amauryleve/refactor-assert-string-difference
Jul 24, 2026
Merged

Refactor Assert.StringDifference into focused files#10182
Evangelink merged 2 commits into
mainfrom
dev/amauryleve/refactor-assert-string-difference

Conversation

@Evangelink

Copy link
Copy Markdown
Member

Summary

  • split string-difference entry points, rendering, formatting, and Unicode tokenization into focused partial-class files
  • keep every resulting file below 300 lines
  • preserve the existing private implementation and public API

Fixes #10181

Testing

  • .\build.cmd -test -bl

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: ab5160cf-e6b4-4ba6-b58e-e3b8ba116305
Copilot AI review requested due to automatic review settings July 23, 2026 19:49

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

Splits string-difference diagnostics into focused partial-class files without changing behavior or public APIs.

Changes:

  • Separates tokenization, rendering, and formatting logic.
  • Keeps each resulting file below 300 lines.
  • Preserves existing implementation and tests.
Show a summary per file
File Description
Assert.StringDifference.cs Retains entry points and core diagnostic types.
Assert.StringDifference.Tokenizer.cs Contains Unicode tokenization logic and types.
Assert.StringDifference.Rendering.cs Contains preview and mismatch rendering.
Assert.StringDifference.Formatting.cs Contains escaping and code-point formatting.

Review details

  • Files reviewed: 4/4 changed files
  • Comments generated: 0
  • Review effort level: Medium

@Evangelink Evangelink added the state/needs-review Awaiting review from the team. label Jul 23, 2026
@Evangelink
Evangelink enabled auto-merge (squash) July 23, 2026 19:55
Copilot AI review requested due to automatic review settings July 24, 2026 08:46

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.

Review details

  • Files reviewed: 4/4 changed files
  • Comments generated: 0 new
  • Review effort level: Medium

@Evangelink
Evangelink merged commit 855729e into main Jul 24, 2026
20 checks passed
@Evangelink
Evangelink deleted the dev/amauryleve/refactor-assert-string-difference branch July 24, 2026 09:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

state/needs-review Awaiting review from the team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[file-diet] Refactor Assert.StringDifference.cs (733 lines) into smaller focused files

3 participants