Tests: make assertions platform-neutral#2376
Tests: make assertions platform-neutral#2376fuguiKz wants to merge 1 commit intoJoshClose:masterfrom
Conversation
|
Note: the GitHub Actions check suite is currently in an Would a maintainer be able to approve and run the workflows for this PR? This is tests-only (no behavior change). Local verification (Linux): |
|
Friendly ping: GitHub Actions checks are still showing as |
|
Friendly ping: GitHub Actions are still not running for this fork PR (checks show as Could a maintainer approve/run the workflows so CI can execute on the latest commit? Happy to iterate quickly on any failures/review feedback. Thanks! |
|
Friendly ping: this PR is meant to unblock the Linux/net8.0 test failures tracked in #2375 by making the assertions platform-neutral. If you’d like CI signal here, could you please approve/run the Actions workflows for this fork PR? Happy to adjust based on any failures. |
Fixes #2375
This is tests-only (no behavior change). It makes a few assertions resilient to platform differences:
cw.Configuration.NewLine/TestStringBuilder(avoids checkout EOL differences).DateTimeoutput viadob.ToString(culture)to handle ICU's narrow no-break space.Verification (Linux):
dotnet test tests/CsvHelper.Tests/CsvHelper.Tests.csproj -c Release -f net8.0