diff --git a/src/Microsoft.DotNet.ScenarioTests.SdkTemplateTests/DotNetSdkTemplate.cs b/src/Microsoft.DotNet.ScenarioTests.SdkTemplateTests/DotNetSdkTemplate.cs index 589a0f6bc..a1325565f 100644 --- a/src/Microsoft.DotNet.ScenarioTests.SdkTemplateTests/DotNetSdkTemplate.cs +++ b/src/Microsoft.DotNet.ScenarioTests.SdkTemplateTests/DotNetSdkTemplate.cs @@ -23,4 +23,6 @@ public enum DotNetSdkTemplate Wpf, Winforms, Aspire, + maui, + maccatalyst } diff --git a/src/Microsoft.DotNet.ScenarioTests.SdkTemplateTests/SdkTemplateTests.cs b/src/Microsoft.DotNet.ScenarioTests.SdkTemplateTests/SdkTemplateTests.cs index c43fdd661..2e55ea992 100644 --- a/src/Microsoft.DotNet.ScenarioTests.SdkTemplateTests/SdkTemplateTests.cs +++ b/src/Microsoft.DotNet.ScenarioTests.SdkTemplateTests/SdkTemplateTests.cs @@ -219,7 +219,6 @@ public void VerifyWorkloadCmd() [Fact] [Trait("Category", "Workload")] - [Trait("Category", "InProgress")] public void VerifyAspireTemplate() { var setup = new DotnetWorkloadTest( @@ -236,6 +235,26 @@ public void VerifyAspireTemplate() cleanup.Execute(_sdkHelper, _scenarioTestInput.TestRoot, "aspire"); } + [Fact] + [Trait("Category", "Workload")] + [Trait("SkipIfPlatform", "LINUX")] + [Trait("SkipIfPlatform", "OSX")] + public void VerifyMaccatalystTemplate() + { + var setup = new DotnetWorkloadTest( + nameof(SdkTemplateTest), _scenarioTestInput.TargetRid, + DotNetSdkActions.WorkloadInstall); + setup.Execute(_sdkHelper, _scenarioTestInput.TestRoot, "maui-desktop"); + var newTest = new SdkTemplateTest( + nameof(SdkTemplateTest), DotNetLanguage.CSharp, _scenarioTestInput.TargetRid, DotNetSdkTemplate.maccatalyst, + DotNetSdkActions.Build | DotNetSdkActions.Publish); + newTest.Execute(_sdkHelper, _scenarioTestInput.TestRoot); + var cleanup = new DotnetWorkloadTest( + nameof(SdkTemplateTest), _scenarioTestInput.TargetRid, + DotNetSdkActions.WorkloadUninstall); + cleanup.Execute(_sdkHelper, _scenarioTestInput.TestRoot, "maui-desktop"); + } + [Fact] [Trait("Category", "Offline")] public void VerifyPreMadeSolution()