diff --git a/tests/common/DotNet.cs b/tests/common/DotNet.cs index beaeaee24127..9353bcd8b65c 100644 --- a/tests/common/DotNet.cs +++ b/tests/common/DotNet.cs @@ -113,6 +113,21 @@ public static ExecutionResult AssertNew (string outputDirectory, string template return new ExecutionResult (output, output, rv.ExitCode); } + public static ExecutionResult InstallWorkload (string workload) + { + var args = new string [] { + "workload", + "install", + workload, + "-v", "diag", + "--skip-manifest-update", + }; + + var rv = ExecuteCommand (Executable, args); + Assert.AreEqual (0, rv.ExitCode, $"Installation of workload '{workload}' failed with exit code {rv.ExitCode}"); + return rv; + } + public static ExecutionResult InstallTool (string tool, string path) { var installed = ExecuteCommand (Executable, "tool", "list", "--tool-path", path); diff --git a/tests/dotnet/MyMauiApp/MacCatalyst/App.xaml b/tests/dotnet/MyMauiApp/MacCatalyst/App.xaml new file mode 100644 index 000000000000..00ed359e7842 --- /dev/null +++ b/tests/dotnet/MyMauiApp/MacCatalyst/App.xaml @@ -0,0 +1,14 @@ + + + + + + + + + + + diff --git a/tests/dotnet/MyMauiApp/MacCatalyst/App.xaml.cs b/tests/dotnet/MyMauiApp/MacCatalyst/App.xaml.cs new file mode 100644 index 000000000000..c9836705f730 --- /dev/null +++ b/tests/dotnet/MyMauiApp/MacCatalyst/App.xaml.cs @@ -0,0 +1,11 @@ +namespace MyMauiApp; + +public partial class App : Application +{ + public App() + { + InitializeComponent(); + + MainPage = new AppShell(); + } +} diff --git a/tests/dotnet/MyMauiApp/MacCatalyst/AppShell.xaml b/tests/dotnet/MyMauiApp/MacCatalyst/AppShell.xaml new file mode 100644 index 000000000000..6b57decd788a --- /dev/null +++ b/tests/dotnet/MyMauiApp/MacCatalyst/AppShell.xaml @@ -0,0 +1,15 @@ + + + + + + diff --git a/tests/dotnet/MyMauiApp/MacCatalyst/AppShell.xaml.cs b/tests/dotnet/MyMauiApp/MacCatalyst/AppShell.xaml.cs new file mode 100644 index 000000000000..a1634c517985 --- /dev/null +++ b/tests/dotnet/MyMauiApp/MacCatalyst/AppShell.xaml.cs @@ -0,0 +1,9 @@ +namespace MyMauiApp; + +public partial class AppShell : Shell +{ + public AppShell() + { + InitializeComponent(); + } +} diff --git a/tests/dotnet/MyMauiApp/MacCatalyst/MainPage.xaml b/tests/dotnet/MyMauiApp/MacCatalyst/MainPage.xaml new file mode 100644 index 000000000000..776cf3417da3 --- /dev/null +++ b/tests/dotnet/MyMauiApp/MacCatalyst/MainPage.xaml @@ -0,0 +1,36 @@ + + + + + + + +