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

21 lines
1 KiB
C#

using NUnit.Framework;
using UnityEditor;
using UnityEngine.AddressableAssets;
public class EditorPlatformMappingServiceTests
{
[TestCase(BuildTarget.XboxOne, AddressablesPlatform.XboxOne)]
[TestCase(BuildTarget.Switch, AddressablesPlatform.Switch)]
[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);
}
}