Make dotnet-add-package.Tests pass on localized setup

This commit is contained in:
Nick Guerrera 2017-06-13 20:29:44 -07:00
parent 3e827fca61
commit 2b74bf73dc
3 changed files with 8 additions and 2 deletions

View file

@ -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);
}
}
}