Class BatchMusicTrackImporterTests
EditMode tests for BatchMusicTrackImporter: inference, advanced loop validation, advanced-settings serialization onto the created asset, duplicate detection and asset creation.
Inherited Members
Namespace: Serenity.Audio.MusicImport.Tests.Editor
Assembly: Serenity.Audio.MusicImport.Tests.Editor.dll
Syntax
public class BatchMusicTrackImporterTests
Constructors
BatchMusicTrackImporterTests()
Declaration
public BatchMusicTrackImporterTests()
Methods
Create_MakeUniqueNames_IdCollisionWithExistingAsset_AutoSuffixesIdInsteadOfBlocking()
Regression test, mirroring BatchSoundEffectImporterTests: "Make unique names (never
overwrite)" must auto-suffix a colliding runtime Id instead of hard-blocking Create.
Declaration
public void Create_MakeUniqueNames_IdCollisionWithExistingAsset_AutoSuffixesIdInsteadOfBlocking()
Create_RegisterInRuntimeList_RegistersCreatedAssetInTheRuntimeSelectableList()
Regression test: a batch-created track was only ever registered in the runtime selectable list one
at a time via the created asset's own Inspector "Fix (register)" button — Create() never
called the registration fix that already existed for exactly this purpose. The registry it
registers into is created here, under this suite's own temp folder: registration only ever writes
into a registry the PROJECT owns, since appending to the shipped template would be undone by the
next package update — and a test that wrote into the real shipped registry had to un-write it again
by hand afterwards.
Declaration
public void Create_RegisterInRuntimeList_RegistersCreatedAssetInTheRuntimeSelectableList()
Create_RegistersCreatedDefinitionsAsAddressables()
Declaration
public void Create_RegistersCreatedDefinitionsAsAddressables()
Create_RejectsDuplicateIdsInBatch()
Declaration
public void Create_RejectsDuplicateIdsInBatch()
Create_SerialisesCommonAndAdvancedFields()
Declaration
public void Create_SerialisesCommonAndAdvancedFields()
Create_TitleDefaultsToAssetNameWhenEmpty()
Declaration
public void Create_TitleDefaultsToAssetNameWhenEmpty()
SetUp()
Declaration
public void SetUp()
SuggestId_SanitisesAndLowercases()
Declaration
public void SuggestId_SanitisesAndLowercases()
SuggestTitle_TitleCasesAndSpaces()
Declaration
public void SuggestTitle_TitleCasesAndSpaces()
TearDown()
Declaration
public void TearDown()
ValidateItem_LoopRegionOnlyCheckedWhenUsed()
Declaration
public void ValidateItem_LoopRegionOnlyCheckedWhenUsed()
ValidateLoopRegion_BarsRules()
Declaration
public void ValidateLoopRegion_BarsRules()
ValidateLoopRegion_TimeRules()
Declaration
public void ValidateLoopRegion_TimeRules()