Make dotnet-add-package.Tests pass on localized setup
This commit is contained in:
parent
3e827fca61
commit
2b74bf73dc
3 changed files with 8 additions and 2 deletions
|
@ -3,6 +3,7 @@
|
|||
|
||||
using FluentAssertions;
|
||||
using Microsoft.DotNet.Tools.Test.Utilities;
|
||||
using Microsoft.DotNet.Tools.Add.PackageReference;
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
|
@ -151,7 +152,7 @@ namespace Microsoft.DotNet.Cli.Package.Add.Tests
|
|||
.WithWorkingDirectory(projectDirectory)
|
||||
.ExecuteWithCapturedOutput($"add package package1 package2 package3");
|
||||
cmd.Should().Fail();
|
||||
cmd.StdErr.Should().Contain("Please specify one package reference to add.");
|
||||
cmd.StdErr.Should().Contain(LocalizableStrings.SpecifyExactlyOnePackageReference);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
@ -168,7 +169,7 @@ namespace Microsoft.DotNet.Cli.Package.Add.Tests
|
|||
.WithWorkingDirectory(projectDirectory)
|
||||
.ExecuteWithCapturedOutput($"add package");
|
||||
cmd.Should().Fail();
|
||||
cmd.StdErr.Should().Contain("Please specify one package reference to add.");
|
||||
cmd.StdErr.Should().Contain(LocalizableStrings.SpecifyExactlyOnePackageReference);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue