fix: use Environment.NewLine in AppendIsIncomplete failure messages#966
Conversation
…es (#965) Two return paths in `AppendIsIncomplete` were C# raw-string literals whose newlines are embedded at compile time from the source file's line endings. The official NuGet builds on Linux (LF), but the surrounding `Formatter.Format` output uses `Environment.NewLine` at runtime — so Windows consumers got messages with mixed `\r\n` and bare `\n` in the "(… and maybe others)" block. Replace the raw strings with explicit concatenation using `Environment.NewLine` so the appended newlines match what `Formatter.Format` already produces.
There was a problem hiding this comment.
Pull request overview
Fixes mixed line-ending output in AppendIsIncomplete by replacing raw-string literals (whose newlines are baked in at compile time from source file EOLs) with explicit concatenation using Environment.NewLine, ensuring consistent newlines regardless of build host vs. runtime OS.
Changes:
- Replace two raw-string returns with
Environment.NewLine-based concatenation. - Leaves the third return (single-line, no embedded newline) unchanged.
|
Test Results 23 files - 27 23 suites - 27 8m 50s ⏱️ +34s Results for commit 89386ce. ± Comparison against base commit a9e05ce. This pull request removes 3195 and adds 3168 tests. Note that renamed tests count towards both. |
…ndIsIncomplete` failure messages (#966) by Valentin Breuß
…ndIsIncomplete` failure messages (#966) by Valentin Breuß
🚀 Benchmark ResultsDetails
|
👽 Mutation ResultsaweXpectDetails
The final mutation score is 92.78%Coverage Thresholds: high:80 low:60 break:0aweXpect.CoreDetails
The final mutation score is NaN%Coverage Thresholds: high:80 low:60 break:0 |



Two return paths in
AppendIsIncompletewere C# raw-string literals whose newlines are embedded at compile time from the source file's line endings. The official NuGet builds on Linux (LF), but the surroundingFormatter.Formatoutput usesEnvironment.NewLineat runtime — so Windows consumers got messages with mixed\r\nand bare\nin the "(… and maybe others)" block.Replace the raw strings with explicit concatenation using
Environment.NewLineso the appended newlines match whatFormatter.Formatalready produces.AppendIsIncompleteemits inconsistent line endings in failure messages #965