Redirect parser to localized validation messages

This commit is contained in:
Nick Guerrera 2017-06-27 13:26:14 -07:00
parent 0353374f10
commit 9b77dc50f1
24 changed files with 881 additions and 9 deletions

View file

@ -66,7 +66,8 @@ Commands:
var cmd = new DotnetCommand()
.ExecuteWithCapturedOutput("sln one.sln two.sln three.sln list");
cmd.Should().Fail();
cmd.StdErr.Should().BeVisuallyEquivalentTo("Unrecognized command or argument 'two.sln'\r\nUnrecognized command or argument 'three.sln'");
cmd.StdErr.Should().BeVisuallyEquivalentTo($@"{string.Format(CommandLine.LocalizableStrings.UnrecognizedCommandOrArgument, "two.sln")}
{string.Format(CommandLine.LocalizableStrings.UnrecognizedCommandOrArgument, "three.sln")}");
}
[Theory]