Namespace Serenity.Tests.Editor
Classes
SerenityAddressablesAutoLabelerTests
Tests for Serenity.Global.Infrastructure.Editor.Utils.SerenityAddressablesAutoLabeler.PartitionCandidates(System.Collections.Generic.IReadOnlyList{System.String},System.Collections.Generic.List{System.String},System.Collections.Generic.List{System.String}): the fix that stops the
auto-labeler from only ever seeing .asset imports, so a package asset such as a shipped .wav
or .png reaches Serenity.Global.Infrastructure.Editor.Utils.UnityAddressablesLabeler.RetagAssets(System.Collections.Generic.IEnumerable{System.String},System.Collections.Generic.IEnumerable{System.String}) instead of being dropped.
SerenityAddressablesInstallerTests
Pins the SessionState bookkeeping Serenity.Global.Infrastructure.Editor.Utils.SerenityAddressablesInstaller.QueueFullRetagAndBuild
owns, without letting the deferred ExecutePendingWork pass actually run: the method only
schedules that work via EditorApplication.delayCall, which never fires inside a synchronous
[Test] method, so asserting the keys right after the call is safe.
SerenityPackageImportRetaggerTests
Pure tests for Serenity.Global.Infrastructure.Editor.Utils.SerenityPackageImportRetagger.ContainsPackageContent(System.String[]): the detector that decides whether a completed package import touched Serenity content and must re-arm the full retag.
UnityAddressablesLabelerRetagNormalizationTests
EditMode tests for the label-normalization contract Serenity.Global.Infrastructure.Editor.Utils.UnityAddressablesLabeler.RetagAssets(System.Collections.Generic.IEnumerable{System.String},System.Collections.Generic.IEnumerable{System.String})
applies through its AddressablesManagedLabelNormalizer collaborator: module labels are
additive-only (a re-evaluation at a new path never strips one an earlier call set), the ownership
label (PROJECT_OWNED) is the sole authoritative exception — added or
removed to match the asset's current path — and a label outside the managed set is never touched
either way. Every fixture is a real asset on disk; the labeler reads real
AddressableAssetSettings, so nothing here can be faked in-memory.
UnityAddressablesLabelerTests
Tests for the pure path/eligibility logic of Serenity.Global.Infrastructure.Editor.Utils.UnityAddressablesLabeler: Serenity.Global.Infrastructure.Editor.Utils.UnityAddressablesLabeler.IsCandidatePath(System.String) (root-scoped), Serenity.Global.Infrastructure.Editor.Utils.UnityAddressablesLabeler.IsRetagEligible(System.String) (root-agnostic, used by the "Retag Selected" tool) and Serenity.Global.Infrastructure.Editor.Utils.UnityAddressablesLabeler.BuildAddress(System.String). Validates the filtering that decides which assets are eligible for Addressables registration and how their addresses are derived during the retag process.