Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions tests/CommandLine.Tests/Unit/ParserTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,7 @@ public void Explicit_help_request_with_specific_verb_generates_help_screen()
[Fact]
public void Properly_formatted_help_screen_is_displayed_when_usage_is_defined_in_verb_scenario()
{
Console.WindowWidth = 80;
// Fixture setup
var help = new StringWriter();
var sut = new Parser(config => config.HelpWriter = help);
Expand Down Expand Up @@ -626,6 +627,7 @@ public void Parse_options_when_given_hidden_verb_with_hidden_option()
[Fact]
public void Specific_verb_help_screen_should_be_displayed_regardless_other_argument()
{
Console.WindowWidth = 80;
// Fixture setup
var help = new StringWriter();
var sut = new Parser(config => config.HelpWriter = help);
Expand Down Expand Up @@ -696,6 +698,7 @@ public void When_IgnoreUnknownArguments_is_set_valid_unknown_arguments_avoid_a_f
[Fact]
public void Properly_formatted_help_screen_excludes_help_as_unknown_option()
{
Console.WindowWidth = 80;
// Fixture setup
var help = new StringWriter();
var sut = new Parser(config => config.HelpWriter = help);
Expand Down
1 change: 1 addition & 0 deletions tests/CommandLine.Tests/Unit/Text/HelpTextTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ public void When_help_text_is_longer_than_width_it_will_wrap_around_as_if_in_a_c
[Fact]
public void When_help_text_has_hidden_option_it_should_not_be_added_to_help_text_output()
{
Console.WindowWidth = 80;
// Fixture setup
// Exercize system
var sut = new HelpText(new HeadingInfo("CommandLine.Tests.dll", "1.9.4.131"));
Expand Down