Files
2026-09-21 12:15:57 +03:00

25 lines
1.1 KiB
C#

using NUnit.Framework;
using UnityEditor;
using UnityEngine.AddressableAssets;
public class EditorPlatformMappingServiceTests
{
[TestCase(BuildTarget.XboxOne, AddressablesPlatform.XboxOne)]
[TestCase(BuildTarget.Switch, AddressablesPlatform.Switch)]
#if UNITY_6000_5_OR_NEWER
[TestCase(BuildTarget.Switch2, AddressablesPlatform.Switch2)]
#endif
[TestCase(BuildTarget.PS4, AddressablesPlatform.PS4)]
[TestCase(BuildTarget.iOS, AddressablesPlatform.iOS)]
[TestCase(BuildTarget.Android, AddressablesPlatform.Android)]
[TestCase(BuildTarget.WebGL, AddressablesPlatform.WebGL)]
[TestCase(BuildTarget.StandaloneWindows64, AddressablesPlatform.Windows)]
[TestCase(BuildTarget.StandaloneWindows, AddressablesPlatform.Windows)]
[TestCase(BuildTarget.StandaloneOSX, AddressablesPlatform.OSX)]
[TestCase(BuildTarget.StandaloneLinux64, AddressablesPlatform.Linux)]
public void EditorPlatformMappingService_EqualsDesiredAddressablesPlatform(BuildTarget platform, AddressablesPlatform desiredPlatform)
{
Assert.AreEqual(PlatformMappingService.GetAddressablesPlatformInternal(platform), desiredPlatform);
}
}