Add option to ignore newline style when comparing strings for equivalency#2565
Add option to ignore newline style when comparing strings for equivalency#2565dennisdoomen merged 5 commits intofluentassertions:developfrom vbreuss:topic/add-option-to-ignore-newline-differences
Conversation
Qodana for .NETIt seems all right 👌 No new problems were found according to the checks applied 💡 Qodana analysis was run in the pull request mode: only the changed files were checked Contact Qodana teamContact us at qodana-support@jetbrains.com
|
Pull Request Test Coverage Report for Build 8410472005Details
💛 - Coveralls |
Src/FluentAssertions/Equivalency/SelfReferenceEquivalencyOptions.cs
Outdated
Show resolved
Hide resolved
Src/FluentAssertions/Equivalency/SelfReferenceEquivalencyOptions.cs
Outdated
Show resolved
Hide resolved
Qodana for .NETIt seems all right 👌 No new problems were found according to the checks applied 💡 Qodana analysis was run in the pull request mode: only the changed files were checked Contact Qodana teamContact us at qodana-support@jetbrains.com
|
|
Another option that would be cool here is to ignore newlines and indentation. public EquivalencyAssertionOptions<T> IgnoreIndentation()
{
// This will remove all whitespace after a newline in actual and expected before comparison
return this;
} |
|
@jnyrup will you be able to review this anything soon? |
|
Nice! |
Bumped FluentAssertions to 7.0.0-alpha.5 for fluentassertions/fluentassertions#2565
* CHG use keyed options to allow multiple definitions in one app * CHG make packet provider and related services keyed so they can be registered multiple times and injected by key * ADD Single executable to host both auth and game in one executable * feat(single): implement single exe * refactor(build): renamed Game + Auth to Game.Server + Auth.Server Executables are now just a tiny wrapper around the library to make QuantumCore.Single not depend on executables (causes many issues with build output) * feat(ci): single exe * feat(single): Add commandline parser to allow --version and --help * chore: Set author to MeikelLP to make auto generated copyright more useful * refactor(single): Moved Game.Server + Auth.Server to Libraries/ dir * fix: launchSettings.json * fix: project references * feat: Use IFileProvider Additionally removed the proto loaders and merged them with their respective manager * refactor(game): Use IFileProvider * refactor(game): Remove additional config files from data dir * fix: tests * refactor(game): Use IFileProvider * refactor(game): Use IFileProvider * refactor(game): Use ILoadable * fix(game): Duplicate service registration * fix: tests * fix: startup crash if no data/ dir existed * docs: renamed API to configuration * docs: Improve configuration docs * chore(docs): Add recommended truncate for blog posts * fix(tests) Bumped FluentAssertions to 7.0.0-alpha.5 for fluentassertions/fluentassertions#2565 * fix: InMemory cache wrong expiry * fix(game): service registration * fix: default IP is loopback * fix(auth): startup * fix(tests) * fix(game): remove unnecessary file IO * refactor: use constants for "auth" and "game" named options * chore: cleanup csproj * fix(single): bump GitVersion.MsBuild to latest to possibly fix CI issue * fix(ci): unshallow fetch * fix(ci): unshallow fetch * fix(single): app launch * fix(ci): self-contained publish for single * chore(ci): rename publish artifacts job * fix(game): ping handler casting wrongly * chore(docs): clarify the client directory * fix(ci): run single builds only on master/tag
|
It seems like while it was included in the 7.0.0-alpha.4, it is not included in the 7.0 release. Why is that? I'm currently facing this exact issue. |
See #2864 (comment) |
Add the following option to the
EquivalencyAssertionOptions<T>for stringsThis fixes #2612 and fixes #2566
IMPORTANT
./build.sh --target spellcheckor.\build.ps1 --target spellcheckbefore pushing and check the good outcome