Fix unit test with hard-coded English message expectation

This commit is contained in:
Nick Guerrera 2018-02-08 15:24:40 -08:00
parent f0be5cc1ef
commit a82d52183f

View file

@ -10,6 +10,7 @@ using System.Xml.Linq;
using FluentAssertions;
using Microsoft.DotNet.Cli.Utils;
using Microsoft.DotNet.TestFramework;
using Microsoft.DotNet.Tools;
using Microsoft.DotNet.Tools.Test.Utilities;
using Microsoft.DotNet.Tools.Test.Utilities.Mock;
using Microsoft.DotNet.Tools.Tests.ComponentMocks;
@ -116,7 +117,7 @@ namespace Microsoft.DotNet.ShellShim.Tests
a.ShouldThrow<GracefulException>()
.And.Message
.Should().Contain(
$"Failed to install tool {shellCommandName}. A command with the same name already exists.");
string.Format(CommonLocalizableStrings.FailInstallToolSameName, shellCommandName));
}
[Theory]