Class PrefabPackedIdentifiersSerializationIndexTests.VirtualArtifactsExtraSerializationIndex
Tests serialization index behavior for objects located in VirtualArtifacts/Extra paths, verifying that virtual artifacts follow the same asset prefix rules as regular assets.
Inheritance
Inherited Members
Namespace: UnityEditor.Build.Pipeline.Tests
Assembly: Unity.ScriptableBuildPipeline.Editor.Tests.dll
Syntax
[TestFixture]
public sealed class PrefabPackedIdentifiersSerializationIndexTests.VirtualArtifactsExtraSerializationIndex
Methods
ProduceExtraArtifactPaths()
Produces VirtualArtifacts/Extra paths for testing by deploying staging fixtures and forcing artifact production.
Declaration
[OneTimeSetUp]
public static void ProduceExtraArtifactPaths()
RemoveStagingFixtures()
Removes staging fixtures created during test setup to clean up the asset database.
Declaration
[OneTimeTearDown]
public static void RemoveStagingFixtures()
SerializationIndexFromObjectIdentifier_VirtualArtifactsExtra_DifferentFiles_DifferInAssetPrefix(int)
Verifies that objects from different VirtualArtifacts/Extra files have different asset-derived prefixes, ensuring distinct virtual artifacts are distinguishable.
Declaration
[TestCase(0)]
[TestCase(42)]
public void SerializationIndexFromObjectIdentifier_VirtualArtifactsExtra_DifferentFiles_DifferInAssetPrefix(int fileIdHashSeed)
Parameters
| Type | Name | Description |
|---|---|---|
| int | fileIdHashSeed | The file ID hash seed to use (0 or non-zero). |
SerializationIndexFromObjectIdentifier_VirtualArtifactsExtra_SameFileDifferentLocalIds_ShareAssetPrefix(int)
Verifies that objects with different local IDs from the same VirtualArtifacts/Extra file share the same asset-derived prefix in their serialization indices.
Declaration
[TestCase(0)]
[TestCase(42)]
public void SerializationIndexFromObjectIdentifier_VirtualArtifactsExtra_SameFileDifferentLocalIds_ShareAssetPrefix(int fileIdHashSeed)
Parameters
| Type | Name | Description |
|---|---|---|
| int | fileIdHashSeed | The file ID hash seed to use (0 or non-zero). |