2021-08-11 11:06:46 +03:00
|
|
|
using System;
|
2020-05-21 19:48:05 +03:00
|
|
|
using Microsoft.DotNet.XHarness.iOS.Shared;
|
|
|
|
|
|
|
|
namespace Xharness {
|
|
|
|
public static class MacFlavorsExtensions {
|
|
|
|
|
|
|
|
public static TestPlatform ToTestPlatform (this MacFlavors flavor)
|
|
|
|
{
|
|
|
|
return flavor switch
|
|
|
|
{
|
|
|
|
MacFlavors.Console => TestPlatform.Mac,
|
|
|
|
MacFlavors.Full => TestPlatform.Mac_Full,
|
|
|
|
MacFlavors.Modern => TestPlatform.Mac_Modern,
|
|
|
|
MacFlavors.System => TestPlatform.Mac_System,
|
2021-02-24 18:07:04 +03:00
|
|
|
MacFlavors.DotNet => TestPlatform.Mac,
|
2021-05-12 11:17:44 +03:00
|
|
|
MacFlavors.MacCatalyst => TestPlatform.MacCatalyst,
|
2020-05-21 19:48:05 +03:00
|
|
|
_ => throw new NotImplementedException (flavor.ToString ()),
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|