diff --git a/src/Uno.UI.RuntimeTests/Tests/Uno_UI_Toolkit/Given_RuntimePlatformDetected.cs b/src/Uno.UI.RuntimeTests/Tests/Uno_UI_Toolkit/Given_RuntimePlatformDetected.cs index 8914fdcf1377..94bb843201d3 100644 --- a/src/Uno.UI.RuntimeTests/Tests/Uno_UI_Toolkit/Given_RuntimePlatformDetected.cs +++ b/src/Uno.UI.RuntimeTests/Tests/Uno_UI_Toolkit/Given_RuntimePlatformDetected.cs @@ -56,14 +56,6 @@ public void When_IsMacCatalyst() } #endif -#if __MACOS__ - [TestMethod] - public void When_IsMacOS() - { - Uno.UI.Helpers.PlatformRuntimeHelper.Current.IsMacOS().Should().BeTrue(); - } -#endif - #if __WASM__ [TestMethod] public void When_IsWebAssembly() @@ -78,6 +70,12 @@ public void When_IsWindows() { Uno.UI.Toolkit.PlatformRuntimeHelper.Current.Should().Be(Uno.UI.Toolkit.UnoRuntimePlatform.Windows); } +#else + [TestMethod] + public void When_IsUnoIsKnown() + { + Uno.UI.Helpers.PlatformRuntimeHelper.Current.Should().NotBe(Uno.UI.Toolkit.UnoRuntimePlatform.Unknown); + } #endif } } diff --git a/src/Uno.UI.Toolkit/UnoRuntimePlatform.cs b/src/Uno.UI.Toolkit/UnoRuntimePlatform.cs index 82827480a921..0a0b3158043a 100644 --- a/src/Uno.UI.Toolkit/UnoRuntimePlatform.cs +++ b/src/Uno.UI.Toolkit/UnoRuntimePlatform.cs @@ -6,7 +6,6 @@ public enum UnoRuntimePlatform Android, iOS, MacCatalyst, - MacOSX, WebAssembly, Windows, SkiaGtk, diff --git a/src/Uno.UI/Helpers/PlatformRuntimeHelper.cs b/src/Uno.UI/Helpers/PlatformRuntimeHelper.cs index a6b32584faf3..2a0ac2555493 100644 --- a/src/Uno.UI/Helpers/PlatformRuntimeHelper.cs +++ b/src/Uno.UI/Helpers/PlatformRuntimeHelper.cs @@ -19,8 +19,6 @@ private static UnoRuntimePlatform GetPlatform() => UnoRuntimePlatform.iOS; #elif __MACCATALYST__ UnoRuntimePlatform.MacCatalyst; -#elif __MACOS__ - UnoRuntimePlatform.MacOSX; #elif __WASM__ UnoRuntimePlatform.WebAssembly; #elif __SKIA__ diff --git a/src/Uno.UI/Helpers/UnoRuntimePlatform.cs b/src/Uno.UI/Helpers/UnoRuntimePlatform.cs index e6eac495bb36..0d29c868a370 100644 --- a/src/Uno.UI/Helpers/UnoRuntimePlatform.cs +++ b/src/Uno.UI/Helpers/UnoRuntimePlatform.cs @@ -12,7 +12,6 @@ public enum UnoRuntimePlatform Android, iOS, MacCatalyst, - MacOSX, WebAssembly, Windows, SkiaGtk, diff --git a/src/Uno.UI/Helpers/Xaml/UnoRuntimePlatformExtensions.cs b/src/Uno.UI/Helpers/Xaml/UnoRuntimePlatformExtensions.cs index 76ebb14e666f..d3f02b73022f 100644 --- a/src/Uno.UI/Helpers/Xaml/UnoRuntimePlatformExtensions.cs +++ b/src/Uno.UI/Helpers/Xaml/UnoRuntimePlatformExtensions.cs @@ -12,8 +12,6 @@ public static bool IsSkia(this UnoRuntimePlatform platform) => platform == UnoRu public static bool IsMacCatalyst(this UnoRuntimePlatform platform) => platform == UnoRuntimePlatform.MacCatalyst; - public static bool IsMacOS(this UnoRuntimePlatform platform) => platform == UnoRuntimePlatform.MacOSX; - public static bool IsWebAssembly(this UnoRuntimePlatform platform) => platform == UnoRuntimePlatform.WebAssembly; public static bool IsWindows(this UnoRuntimePlatform platform) => platform == UnoRuntimePlatform.Windows;