Make dotnet.Tests pass on localized setup

This commit is contained in:
Nick Guerrera 2017-06-12 17:31:40 -07:00
parent a2a33591ce
commit f09124fcd6
6 changed files with 12 additions and 20 deletions

View file

@ -275,7 +275,7 @@ namespace Microsoft.DotNet.Tests
.WithWorkingDirectory(testInstance.Root)
.ExecuteWithCapturedOutput("nonexistingtool")
.Should().Fail()
.And.HaveStdErrContaining("No executable found matching command \"dotnet-nonexistingtool\"");
.And.HaveStdErrContaining(string.Format(LocalizableStrings.NoExecutableFoundMatchingCommand, "dotnet-nonexistingtool"));
}
[Fact]
@ -409,7 +409,7 @@ namespace Microsoft.DotNet.Tests
.WithWorkingDirectory(testInstance.Root)
.ExecuteWithCapturedOutput();
result.StdErr.Should().Contain("No executable found matching command");
result.StdErr.Should().Contain(string.Format(LocalizableStrings.NoExecutableFoundMatchingCommand, "dotnet-hello"));
result.Should().Fail();
}