CommandAppTester is trimming TestConsole output, requiring expected outputs to be manually adjusted #1738
Labels
area-Testing-Framework
Spectre.Console testing framework for developers.
bug
Something isn't working
Milestone
Information
Describe the bug
CommandAppTester
is trimmingTestConsole
output, requiring expected outputs to be manually adjusted.To Reproduce
Run the below, self-contained, unit test:
Expected behavior
Whitespace is trimmed from the TestConsole output (see screenshot below)
Screenshots
Additional context
Here is the culprit:
nb. I don't see a good reason for the literal command output to be manipulated after the command has executed (please tell me if you know why this is necessary). We saw a similar thing happening in the CLI command parser stripping out whitespace, which we eventually abandoned because it was causing inaccurate discarding of whitespace.
Please upvote 👍 this issue if you are interested in it.
The text was updated successfully, but these errors were encountered: