Skip to content

Commit

Permalink
[tests] Fix the MlaunchTest.GetMlaunchRunArguments in a more future-p…
Browse files Browse the repository at this point in the history
…roof way.
  • Loading branch information
rolfbjarne committed Feb 15, 2024
1 parent ea239b1 commit 924b0be
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions tests/dotnet/UnitTests/MlaunchTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,17 @@ public void GetMlaunchInstallArguments (ApplePlatform platform, string runtimeId
Assert.AreEqual (expectedScriptContents, scriptContents, "Script contents");
}

public static object[] GetMlaunchRunArgumentsTestCases ()
{
return new object[] {
new object [] {ApplePlatform.iOS, "iossimulator-x64;iossimulator-arm64", $":v2:runtime=com.apple.CoreSimulator.SimRuntime.iOS-{SdkVersions.iOS.Replace('.', '-')},devicetype=com.apple.CoreSimulator.SimDeviceType.iPhone-15-Pro" },
new object [] {ApplePlatform.iOS, "ios-arm64", "" },
new object [] {ApplePlatform.TVOS, "tvossimulator-arm64", $":v2:runtime=com.apple.CoreSimulator.SimRuntime.tvOS-{SdkVersions.TVOS.Replace('.', '-')},devicetype=com.apple.CoreSimulator.SimDeviceType.Apple-TV-4K-3rd-generation-1080p" },
};
}

[Test]
[TestCase (ApplePlatform.iOS, "iossimulator-x64;iossimulator-arm64", ":v2:runtime=com.apple.CoreSimulator.SimRuntime.iOS-17-2,devicetype=com.apple.CoreSimulator.SimDeviceType.iPhone-15-Pro")]
[TestCase (ApplePlatform.iOS, "ios-arm64", "")]
[TestCase (ApplePlatform.TVOS, "tvossimulator-arm64", ":v2:runtime=com.apple.CoreSimulator.SimRuntime.tvOS-17-2,devicetype=com.apple.CoreSimulator.SimDeviceType.Apple-TV-4K-3rd-generation-1080p")]
[TestCaseSource (nameof (GetMlaunchRunArgumentsTestCases))]
public void GetMlaunchRunArguments (ApplePlatform platform, string runtimeIdentifiers, string device)
{
var project = "MySimpleApp";
Expand Down

0 comments on commit 924b0be

Please sign in to comment.