Update the test to target current and 5.0
This commit is contained in:
parent
34c193506e
commit
08f2244ae0
1 changed files with 15 additions and 4 deletions
|
@ -98,13 +98,18 @@ namespace EndToEnd.Tests
|
|||
|
||||
[WindowsOnlyTheory]
|
||||
[InlineData("net5.0")]
|
||||
[InlineData("net6.0")]
|
||||
[InlineData("current")]
|
||||
public void ItCanPublishArm64Winforms(string TargetFramework)
|
||||
{
|
||||
DirectoryInfo directory = TestAssets.CreateTestDirectory();
|
||||
string projectDirectory = directory.FullName;
|
||||
string TargetFrameworkParameter = "";
|
||||
|
||||
string newArgs = $"winforms -f {TargetFramework} --no-restore";
|
||||
if (TargetFramework != "current")
|
||||
{
|
||||
TargetFrameworkParameter = $"-f {TargetFramework}"
|
||||
}
|
||||
string newArgs = $"winforms {TargetFrameworkParameter} --no-restore";
|
||||
new NewCommandShim()
|
||||
.WithWorkingDirectory(projectDirectory)
|
||||
.Execute(newArgs)
|
||||
|
@ -126,13 +131,19 @@ namespace EndToEnd.Tests
|
|||
|
||||
[WindowsOnlyTheory]
|
||||
[InlineData("net5.0")]
|
||||
[InlineData("net6.0")]
|
||||
[InlineData("current")]
|
||||
public void ItCanPublishArm64Wpf(string TargetFramework)
|
||||
{
|
||||
DirectoryInfo directory = TestAssets.CreateTestDirectory();
|
||||
string projectDirectory = directory.FullName;
|
||||
string TargetFrameworkParameter = "";
|
||||
|
||||
string newArgs = $"wpf -f {TargetFramework} --no-restore";
|
||||
if (TargetFramework != "current")
|
||||
{
|
||||
TargetFrameworkParameter = $"-f {TargetFramework}"
|
||||
}
|
||||
|
||||
string newArgs = $"wpf {TargetFrameworkParameter} --no-restore";
|
||||
new NewCommandShim()
|
||||
.WithWorkingDirectory(projectDirectory)
|
||||
.Execute(newArgs)
|
||||
|
|
Loading…
Add table
Reference in a new issue