Fixing failing test. Now that the latest NetStandard.Library version moved to 2.0.1, the test needed to account for that.

This commit is contained in:
Livar Cunha 2017-11-28 12:54:06 -08:00
parent 9e97e53446
commit 3b1c67bb55

View file

@ -75,14 +75,13 @@ namespace Microsoft.DotNet.New.Tests
} }
[Theory] [Theory]
[InlineData("console", "microsoft.netcore.app")] [InlineData("console", "microsoft.netcore.app", "2.0.0")]
[InlineData("classlib", "netstandard.library")] [InlineData("classlib", "netstandard.library", "2.0.1")]
public void NewProjectRestoresCorrectPackageVersion(string type, string packageName) public void NewProjectRestoresCorrectPackageVersion(string type, string packageName, string expectedVersion)
{ {
var rootPath = TestAssets.CreateTestDirectory(identifier: $"_{type}").FullName; var rootPath = TestAssets.CreateTestDirectory(identifier: $"_{type}").FullName;
var packagesDirectory = Path.Combine(rootPath, "packages"); var packagesDirectory = Path.Combine(rootPath, "packages");
var projectName = "Project"; var projectName = "Project";
var expectedVersion = "2.0.0";
var repoRootNuGetConfig = Path.Combine(RepoDirectoriesProvider.RepoRoot, "NuGet.Config"); var repoRootNuGetConfig = Path.Combine(RepoDirectoriesProvider.RepoRoot, "NuGet.Config");
new NewCommand() new NewCommand()