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
4 changes: 2 additions & 2 deletions src/Spectre.Console.Cli.Tests/CommandAppTests.Pairs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ public void Should_Throw_If_Value_Is_Not_In_A_Valid_Format_Using_Default_Deconst
string input, string expected)
{
// Given
var app = new CommandAppTester();
var app = new CommandAppTester { TestSettings = { TrimConsoleOutput = false } };
app.SetDefaultCommand<GenericCommand<DefaultPairDeconstructorSettings>>();

// When
Expand All @@ -203,7 +203,7 @@ public void Should_Throw_If_Value_Is_Not_In_A_Valid_Format_Using_Default_Deconst

// Then
result.ExitCode.ShouldBe(-1);
result.Output.ShouldBe(expected);
result.Output.ShouldBe(expected + Environment.NewLine);
}

[Fact]
Expand Down
2 changes: 1 addition & 1 deletion src/Spectre.Console.Cli/CommandParseException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ internal static CommandParseException UnknownOption(IEnumerable<string> args, Co

internal static CommandParseException ValueIsNotInValidFormat(string value)
{
var text = $"[red]Error:[/] The value '[white]{value}[/]' is not in a correct format";
var text = $"[red]Error:[/] The value '[white]{value}[/]' is not in a correct format{Environment.NewLine}";
return new CommandParseException("Could not parse value", new Markup(text));
}

Expand Down