Fix unit test with hard-coded English message expectation
This commit is contained in:
parent
f0be5cc1ef
commit
a82d52183f
1 changed files with 2 additions and 1 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Reference in a new issue