Closed
Description
#589 adds a check for sut.Settings.MaximumDisplayWidth.Should().Be(80)
, but that will fail if you run dotnet test
in a Linux terminal window that's a different size.
To Reproduce:
- Clone the repo
- Open a Linux terminal window and don't resize it, so it's 80x24 (the usual default)
- Run
dotnet test
. It works. - Resize the terminal window so it's one character wider
- Run
dotnet test
. It fails with "Expected sut.Settings.MaximumDisplayWidth to be 80, but found 81."
Note that on my dev laptop, I habitually run terminal windows at maximum screen width, so for me the exception was "Expected sut.Settings.MaximumDisplayWidth to be 80, but found 272."
Solution:
Don't assume any particular value for MaximumDisplayWidth; just check that it's greater than 1.
Metadata
Metadata
Assignees
Labels
No labels