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 into
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 |
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! |
|
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