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

@ -69,8 +69,8 @@ Commands:
.WithProject("one two three")
.Execute("proj.csproj");
cmd.ExitCode.Should().NotBe(0);
cmd.StdErr.Should().BeVisuallyEquivalentTo(
"Unrecognized command or argument 'two'\r\nUnrecognized command or argument 'three'");
cmd.StdErr.Should().BeVisuallyEquivalentTo($@"{string.Format(CommandLine.LocalizableStrings.UnrecognizedCommandOrArgument, "two")}
{string.Format(CommandLine.LocalizableStrings.UnrecognizedCommandOrArgument, "three")}");
}
[Theory]