Class 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.
Inherited Members
Namespace: Serenity.Tests.Editor
Assembly: Tests.Editor.dll
Syntax
public class UnityAddressablesLabelerTests
Constructors
UnityAddressablesLabelerTests()
Declaration
public UnityAddressablesLabelerTests()
Methods
BuildAddress_AssetDirectlyUnderRoot_KeepsFileName()
Declaration
public void BuildAddress_AssetDirectlyUnderRoot_KeepsFileName()
BuildAddress_NormalizesBackslashes()
Declaration
public void BuildAddress_NormalizesBackslashes()
BuildAddress_OutsidePluginRoots_StripsLeadingAssets()
Declaration
public void BuildAddress_OutsidePluginRoots_StripsLeadingAssets()
BuildAddress_UnderPluginsRoot_StripsRootAndExtension()
Declaration
public void BuildAddress_UnderPluginsRoot_StripsRootAndExtension()
BuildAddress_UnderSerenityRoot_StripsRootAndExtension()
Declaration
public void BuildAddress_UnderSerenityRoot_StripsRootAndExtension()
DecideLabels_AddressableAssetsDataPath_ReturnsEmpty()
Declaration
public void DecideLabels_AddressableAssetsDataPath_ReturnsEmpty()
DecideLabels_AssetInsideTheStageModulePackageFolder_CarriesTheStageLabel(string)
Declaration
public void DecideLabels_AssetInsideTheStageModulePackageFolder_CarriesTheStageLabel(string assetPath)
Parameters
| Type | Name | Description |
|---|---|---|
| string | assetPath |
DecideLabels_CustomerAssetNamedWithAGameplayWord_CarriesNoGameplayModuleLabel(string)
Declaration
public void DecideLabels_CustomerAssetNamedWithAGameplayWord_CarriesNoGameplayModuleLabel(string assetPath)
Parameters
| Type | Name | Description |
|---|---|---|
| string | assetPath |
DecideLabels_EveryShippedEntry_DerivesNoLabelTheEntryDoesNotAlreadyCarry()
Runs the labeler over every shipped entry of the Serenity group: a retag of the package must add no label the entry does not already carry. This is what keeps a rule change from silently re-filing shipped content under another module.
Declaration
public void DecideLabels_EveryShippedEntry_DerivesNoLabelTheEntryDoesNotAlreadyCarry()
DecideLabels_EveryShippedScriptableObject_CarriesTheLabelsThePassiveLabelerGivesItsType()
A retag and the passive labeler must agree on what a Serenity ScriptableObject is. A project whose Serenity group was built by a retag otherwise lacks the labels a runtime query needs — an audio player channel the audio player loads by its type label, an action the event dispatcher loads by the global label — until any later import of the asset lets the passive labeler add them.
Declaration
public void DecideLabels_EveryShippedScriptableObject_CarriesTheLabelsThePassiveLabelerGivesItsType()
DecideLabels_GameCameraPluginsRootPath_ResolvesGameCameraLabel()
Declaration
public void DecideLabels_GameCameraPluginsRootPath_ResolvesGameCameraLabel()
DecideLabels_GameCameraSettingsPath_ResolvesGameCameraLabel()
Declaration
public void DecideLabels_GameCameraSettingsPath_ResolvesGameCameraLabel()
DecideLabels_GeneratedViewsAsset_CarriesCompositeView()
Declaration
public void DecideLabels_GeneratedViewsAsset_CarriesCompositeView()
DecideLabels_InstallAchievementsTask_CarriesGlobalAndAchievements()
Declaration
public void DecideLabels_InstallAchievementsTask_CarriesGlobalAndAchievements()
DecideLabels_PluginRootPath_ExcludesProjectOwnedLabel()
Declaration
public void DecideLabels_PluginRootPath_ExcludesProjectOwnedLabel()
DecideLabels_PluginsFolderPath_ExcludesProjectOwnedLabel()
Declaration
public void DecideLabels_PluginsFolderPath_ExcludesProjectOwnedLabel()
DecideLabels_ProjectPath_IncludesProjectOwnedLabel()
Declaration
public void DecideLabels_ProjectPath_IncludesProjectOwnedLabel()
DecideLabels_ShippedInstallStageTask_CarriesTheStageLabel()
Declaration
public void DecideLabels_ShippedInstallStageTask_CarriesTheStageLabel()
DecideLabels_ThemeAchievementsPrefab_CarriesAchievementsAndUi()
Declaration
public void DecideLabels_ThemeAchievementsPrefab_CarriesAchievementsAndUi()
IsCandidatePath_AddressablesDataFolder_ReturnsFalse()
Declaration
public void IsCandidatePath_AddressablesDataFolder_ReturnsFalse()
IsCandidatePath_AnyPdf_ReturnsFalse()
Declaration
public void IsCandidatePath_AnyPdf_ReturnsFalse()
IsCandidatePath_CsFile_ReturnsFalse()
Declaration
public void IsCandidatePath_CsFile_ReturnsFalse()
IsCandidatePath_DocsFolder_ReturnsFalse()
Declaration
public void IsCandidatePath_DocsFolder_ReturnsFalse()
IsCandidatePath_DocumentationFolder_ReturnsFalse()
Declaration
public void IsCandidatePath_DocumentationFolder_ReturnsFalse()
IsCandidatePath_ExamplesFolder_ReturnsFalse()
Declaration
public void IsCandidatePath_ExamplesFolder_ReturnsFalse()
IsCandidatePath_FileNameContainsManual_ReturnsFalse()
Declaration
public void IsCandidatePath_FileNameContainsManual_ReturnsFalse()
IsCandidatePath_GameCameraSettingsAsset_ReturnsTrue()
Declaration
public void IsCandidatePath_GameCameraSettingsAsset_ReturnsTrue()
IsCandidatePath_ManualFolder_ReturnsFalse()
Declaration
public void IsCandidatePath_ManualFolder_ReturnsFalse()
IsCandidatePath_MarkdownFile_ReturnsFalse()
Declaration
public void IsCandidatePath_MarkdownFile_ReturnsFalse()
IsCandidatePath_NullOrEmpty_ReturnsFalse()
Declaration
public void IsCandidatePath_NullOrEmpty_ReturnsFalse()
IsCandidatePath_OutsidePluginRoot_ReturnsFalse()
Declaration
public void IsCandidatePath_OutsidePluginRoot_ReturnsFalse()
IsCandidatePath_PdfManual_ReturnsFalse()
Declaration
public void IsCandidatePath_PdfManual_ReturnsFalse()
IsCandidatePath_PluginsRoot_ReturnsTrue()
Declaration
public void IsCandidatePath_PluginsRoot_ReturnsTrue()
IsCandidatePath_PngImage_ReturnsTrue()
Declaration
public void IsCandidatePath_PngImage_ReturnsTrue()
IsCandidatePath_PrefabAsset_ReturnsTrue()
Declaration
public void IsCandidatePath_PrefabAsset_ReturnsTrue()
IsCandidatePath_ScriptableObjectAsset_ReturnsTrue()
Declaration
public void IsCandidatePath_ScriptableObjectAsset_ReturnsTrue()
IsCandidatePath_SqlSchemaFile_ReturnsFalse()
Declaration
public void IsCandidatePath_SqlSchemaFile_ReturnsFalse()
IsCandidatePath_UnityScene_ReturnsFalse()
Declaration
public void IsCandidatePath_UnityScene_ReturnsFalse()
IsRetagEligible_AddressablesDataFolder_ReturnsFalse()
Declaration
public void IsRetagEligible_AddressablesDataFolder_ReturnsFalse()
IsRetagEligible_AssetOutsidePluginRoots_ReturnsTrue()
Declaration
public void IsRetagEligible_AssetOutsidePluginRoots_ReturnsTrue()
IsRetagEligible_AssetUnderSerenityRoot_ReturnsTrue()
Declaration
public void IsRetagEligible_AssetUnderSerenityRoot_ReturnsTrue()
IsRetagEligible_DocumentationSegment_ReturnsFalse()
Declaration
public void IsRetagEligible_DocumentationSegment_ReturnsFalse()
IsRetagEligible_ExcludedExtension_ReturnsFalse()
Declaration
public void IsRetagEligible_ExcludedExtension_ReturnsFalse()
IsRetagEligible_FileImportedAsDefaultAsset_ReturnsFalse()
Declaration
public void IsRetagEligible_FileImportedAsDefaultAsset_ReturnsFalse()
IsRetagEligible_FileNameContainsManual_ReturnsFalse()
Declaration
public void IsRetagEligible_FileNameContainsManual_ReturnsFalse()
IsRetagEligible_NullOrEmpty_ReturnsFalse()
Declaration
public void IsRetagEligible_NullOrEmpty_ReturnsFalse()
IsRetagEligible_OutsideRoot_DivergesFromIsCandidatePath()
Declaration
public void IsRetagEligible_OutsideRoot_DivergesFromIsCandidatePath()
IsRetagEligible_SqlFile_ReturnsFalse()
Declaration
public void IsRetagEligible_SqlFile_ReturnsFalse()
TryDecideLabels_GeneratedViewsAsset_ReturnsTrue()
Declaration
public void TryDecideLabels_GeneratedViewsAsset_ReturnsTrue()