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

22 lines
727 B
C#

using System;
using NUnit.Framework;
using UnityEditor.AddressableAssets.Build;
using UnityEditor.AddressableAssets.Build.DataBuilders;
using UnityEngine;
namespace UnityEditor.AddressableAssets.Tests
{
public class BuildScriptFastTests : AddressableAssetTestBase
{
[Test]
public void FastModeScript_CannotBuildPlayerContent()
{
var buildScript = ScriptableObject.CreateInstance<BuildScriptFastMode>();
Assert.IsFalse(buildScript.CanBuildData<AddressablesPlayerBuildResult>());
Assert.IsTrue(buildScript.CanBuildData<AddressableAssetBuildResult>());
Assert.IsTrue(buildScript.CanBuildData<AddressablesPlayModeBuildResult>());
}
}
}