diff --git a/src/Spectre.Console.Cli.Tests/CommandAppTests.Pairs.cs b/src/Spectre.Console.Cli.Tests/CommandAppTests.Pairs.cs index a9e2435..1d064e6 100644 --- a/src/Spectre.Console.Cli.Tests/CommandAppTests.Pairs.cs +++ b/src/Spectre.Console.Cli.Tests/CommandAppTests.Pairs.cs @@ -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>(); // When @@ -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] diff --git a/src/Spectre.Console.Cli/CommandParseException.cs b/src/Spectre.Console.Cli/CommandParseException.cs index 19c0518..59f3146 100644 --- a/src/Spectre.Console.Cli/CommandParseException.cs +++ b/src/Spectre.Console.Cli/CommandParseException.cs @@ -110,7 +110,7 @@ internal static CommandParseException UnknownOption(IEnumerable 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)); }