From 7d9bf1cecffb427c2030d6b4603876a4944f230e Mon Sep 17 00:00:00 2001 From: Shane Neuville Date: Thu, 26 Oct 2023 17:58:41 -0500 Subject: [PATCH 1/2] Fix device model error api 33 --- src/Essentials/test/DeviceTests/Tests/DeviceInfo_Tests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Essentials/test/DeviceTests/Tests/DeviceInfo_Tests.cs b/src/Essentials/test/DeviceTests/Tests/DeviceInfo_Tests.cs index 558453e07bfe..01ba98df308c 100644 --- a/src/Essentials/test/DeviceTests/Tests/DeviceInfo_Tests.cs +++ b/src/Essentials/test/DeviceTests/Tests/DeviceInfo_Tests.cs @@ -41,7 +41,7 @@ public void DeviceModel_Is_Correct() DeviceInfo.Model.Contains("Emulator", StringComparison.Ordinal) || DeviceInfo.Model.Contains("Android SDK built for x86", StringComparison.Ordinal); - Assert.True(isEmulator); + Assert.True(isEmulator, DeviceInfo.Model); } #else throw new PlatformNotSupportedException(); From b7755f106edf82f1cb4d94ac1dd73f748abfc7e2 Mon Sep 17 00:00:00 2001 From: Shane Neuville Date: Thu, 26 Oct 2023 18:44:49 -0500 Subject: [PATCH 2/2] - add sdk_gphone64_x86_64 --- src/Essentials/test/DeviceTests/Tests/DeviceInfo_Tests.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Essentials/test/DeviceTests/Tests/DeviceInfo_Tests.cs b/src/Essentials/test/DeviceTests/Tests/DeviceInfo_Tests.cs index 01ba98df308c..7999e9efbda8 100644 --- a/src/Essentials/test/DeviceTests/Tests/DeviceInfo_Tests.cs +++ b/src/Essentials/test/DeviceTests/Tests/DeviceInfo_Tests.cs @@ -37,6 +37,7 @@ public void DeviceModel_Is_Correct() { var isEmulator = DeviceInfo.Model.Contains("sdk_gphone_x86", StringComparison.Ordinal) || + DeviceInfo.Model.Contains("sdk_gphone64_x86_64", StringComparison.Ordinal) || DeviceInfo.Model.Contains("google_sdk", StringComparison.Ordinal) || DeviceInfo.Model.Contains("Emulator", StringComparison.Ordinal) || DeviceInfo.Model.Contains("Android SDK built for x86", StringComparison.Ordinal);