Make Microsoft.Dotnet.Cli.Utils.Tests pass on localized setup
This commit is contained in:
parent
f09124fcd6
commit
023acbd212
2 changed files with 3 additions and 3 deletions
|
@ -413,7 +413,7 @@ namespace Microsoft.DotNet.Tests
|
||||||
Action action = () => projectToolsCommandResolver.Resolve(commandResolverArguments);
|
Action action = () => projectToolsCommandResolver.Resolve(commandResolverArguments);
|
||||||
|
|
||||||
action.ShouldThrow<GracefulException>().WithMessage(
|
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)
|
private void PopulateFallbackFolder(string testProjectDirectory, string fallbackFolder)
|
||||||
|
|
|
@ -28,8 +28,8 @@ namespace Microsoft.DotNet.Cli.Utils.Tests
|
||||||
var assetsFile = testInstance.Root.GetDirectory("obj").GetFile("project.assets.json").FullName;
|
var assetsFile = testInstance.Root.GetDirectory("obj").GetFile("project.assets.json").FullName;
|
||||||
var expectedMessage = string.Join(
|
var expectedMessage = string.Join(
|
||||||
Environment.NewLine,
|
Environment.NewLine,
|
||||||
$"File not found `{assetsFile}`.",
|
string.Format(LocalizableStrings.FileNotFound, assetsFile),
|
||||||
"The project may not have been restored or restore failed - run `dotnet restore`");
|
LocalizableStrings.ProjectNotRestoredOrRestoreFailed);
|
||||||
|
|
||||||
Action action = () =>
|
Action action = () =>
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue