Make Microsoft.Dotnet.Cli.Utils.Tests pass on localized setup

This commit is contained in:
Nick Guerrera 2017-06-12 18:32:07 -07:00
parent f09124fcd6
commit 023acbd212
2 changed files with 3 additions and 3 deletions

View file

@ -413,7 +413,7 @@ namespace Microsoft.DotNet.Tests
Action action = () => projectToolsCommandResolver.Resolve(commandResolverArguments);
action.ShouldThrow<GracefulException>().WithMessage(
"The command executable for \"dotnet-fallbackfoldertool\" was not found. The project may not have been restored or restore failed - run `dotnet restore`");
string.Format(LocalizableStrings.CommandAssembliesNotFound, "dotnet-fallbackfoldertool"));
}
private void PopulateFallbackFolder(string testProjectDirectory, string fallbackFolder)

View file

@ -28,8 +28,8 @@ namespace Microsoft.DotNet.Cli.Utils.Tests
var assetsFile = testInstance.Root.GetDirectory("obj").GetFile("project.assets.json").FullName;
var expectedMessage = string.Join(
Environment.NewLine,
$"File not found `{assetsFile}`.",
"The project may not have been restored or restore failed - run `dotnet restore`");
string.Format(LocalizableStrings.FileNotFound, assetsFile),
LocalizableStrings.ProjectNotRestoredOrRestoreFailed);
Action action = () =>
{