ZoeAppClass/Library/PackageCache/com.unity.addressables@1.1.10/Tests/Editor/EditorPlatformMappingServic...

26 lines
1.2 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)]
#if !UNITY_2019_2_OR_NEWER
[TestCase(BuildTarget.StandaloneLinux, AddressablesPlatform.Linux)]
[TestCase(BuildTarget.StandaloneLinuxUniversal, AddressablesPlatform.Linux)]
#endif
public void EditorPlatformMappingService_EqualsDesiredAddressablesPlatform(BuildTarget platform, AddressablesPlatform desiredPlatform)
{
Assert.AreEqual(PlatformMappingService.GetAddressablesPlatformInternal(platform), desiredPlatform);
}
}