WuhuIslandTesting/Library/PackageCache/com.unity.addressables@1.21.12/Tests/Runtime/RuntimePlatformMappingServiceTests.cs
2025-01-07 02:06:59 +01:00

23 lines
1.2 KiB
C#

using NUnit.Framework;
using UnityEngine;
using UnityEngine.AddressableAssets;
public class RuntimePlatformMappingServiceTests
{
[TestCase(RuntimePlatform.XboxOne, AddressablesPlatform.XboxOne)]
[TestCase(RuntimePlatform.Switch, AddressablesPlatform.Switch)]
[TestCase(RuntimePlatform.PS4, AddressablesPlatform.PS4)]
[TestCase(RuntimePlatform.IPhonePlayer, AddressablesPlatform.iOS)]
[TestCase(RuntimePlatform.Android, AddressablesPlatform.Android)]
[TestCase(RuntimePlatform.WebGLPlayer, AddressablesPlatform.WebGL)]
[TestCase(RuntimePlatform.WindowsPlayer, AddressablesPlatform.Windows)]
[TestCase(RuntimePlatform.OSXPlayer, AddressablesPlatform.OSX)]
[TestCase(RuntimePlatform.LinuxPlayer, AddressablesPlatform.Linux)]
[TestCase(RuntimePlatform.WSAPlayerARM, AddressablesPlatform.WindowsUniversal)]
[TestCase(RuntimePlatform.WSAPlayerX64, AddressablesPlatform.WindowsUniversal)]
[TestCase(RuntimePlatform.WSAPlayerX86, AddressablesPlatform.WindowsUniversal)]
public void RuntimePlatformMappingService_EqualsDesiredAddressablesPlatform(RuntimePlatform platform, AddressablesPlatform desiredPlatform)
{
Assert.AreEqual(PlatformMappingService.GetAddressablesPlatformInternal(platform), desiredPlatform);
}
}