Fix tests
This commit is contained in:
parent
2b5cf41ee9
commit
201dfd581b
3 changed files with 5 additions and 4 deletions
|
@ -18,7 +18,8 @@ namespace EndToEnd
|
|||
"1.0",
|
||||
"1.1",
|
||||
"2.0",
|
||||
"2.1"
|
||||
"2.1",
|
||||
"2.2"
|
||||
}.Select(version => new object[] { version });
|
||||
}
|
||||
}
|
||||
|
|
|
@ -93,7 +93,7 @@ namespace Microsoft.DotNet.Cli.Build.Tests
|
|||
string dir = "pkgs";
|
||||
string args = $"--packages {dir}";
|
||||
|
||||
string newArgs = $"console -f netcoreapp2.1 -o \"{rootPath}\" --debug:ephemeral-hive --no-restore";
|
||||
string newArgs = $"console -f netcoreapp2.2 -o \"{rootPath}\" --debug:ephemeral-hive --no-restore";
|
||||
new NewCommandShim()
|
||||
.WithWorkingDirectory(rootPath)
|
||||
.Execute(newArgs)
|
||||
|
@ -115,7 +115,7 @@ namespace Microsoft.DotNet.Cli.Build.Tests
|
|||
var configuration = Environment.GetEnvironmentVariable("CONFIGURATION") ?? "Debug";
|
||||
|
||||
var outputDll = Directory.EnumerateFiles(
|
||||
Path.Combine(rootPath, "bin", configuration, "netcoreapp2.1"), "*.dll",
|
||||
Path.Combine(rootPath, "bin", configuration, "netcoreapp2.2"), "*.dll",
|
||||
SearchOption.TopDirectoryOnly)
|
||||
.Single();
|
||||
|
||||
|
|
|
@ -76,7 +76,7 @@ namespace Microsoft.DotNet.New.Tests
|
|||
|
||||
// Remove the expectedVersion parameter once we have templates targetting netcoreapp2.2.
|
||||
[Theory]
|
||||
[InlineData("console", "microsoft.netcore.app", "2.2.0")]
|
||||
[InlineData("console", "microsoft.netcore.app", null)]
|
||||
[InlineData("classlib", "netstandard.library", "2.0.3")] // FIXME: This is pinned to 2.0.3 due to https://github.com/dotnet/sdk/issues/2410
|
||||
public void NewProjectRestoresCorrectPackageVersion(string type, string packageName, string expectedVersion)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue