From 8f2fda8f782b43b4485368a644a4370972bd093f Mon Sep 17 00:00:00 2001 From: Marc Paine Date: Fri, 12 Nov 2021 16:37:43 -0800 Subject: [PATCH] Update the WD publish tests to target downlevel as well --- test/EndToEnd/ProjectBuildTests.cs | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/test/EndToEnd/ProjectBuildTests.cs b/test/EndToEnd/ProjectBuildTests.cs index e3377ef9e..1ae6cd59a 100644 --- a/test/EndToEnd/ProjectBuildTests.cs +++ b/test/EndToEnd/ProjectBuildTests.cs @@ -85,13 +85,15 @@ namespace EndToEnd.Tests .Should().Pass().And.HaveStdOutContaining("Hello, World!"); } - [WindowsOnlyFact] - public void ItCanPublishArm64Winforms() + [WindowsOnlyTheory] + [InlineData("net5.0")] + [InlineData("net6.0")] + public void ItCanPublishArm64Winforms(string TargetFramework) { DirectoryInfo directory = TestAssets.CreateTestDirectory(); string projectDirectory = directory.FullName; - string newArgs = "winforms --no-restore"; + string newArgs = $"winforms -f {TargetFramework} --no-restore"; new NewCommandShim() .WithWorkingDirectory(projectDirectory) .Execute(newArgs) @@ -111,13 +113,15 @@ namespace EndToEnd.Tests selfContainedPublishDir.Should().HaveFilesMatching($"{directory.Name}.dll", SearchOption.TopDirectoryOnly); } - [WindowsOnlyFact] - public void ItCanPublishArm64Wpf() + [WindowsOnlyTheory] + [InlineData("net5.0")] + [InlineData("net6.0")] + public void ItCanPublishArm64Wpf(string TargetFramework) { DirectoryInfo directory = TestAssets.CreateTestDirectory(); string projectDirectory = directory.FullName; - string newArgs = "wpf --no-restore"; + string newArgs = $"wpf -f {TargetFramework} --no-restore"; new NewCommandShim() .WithWorkingDirectory(projectDirectory) .Execute(newArgs)