logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class BatchMusicTrackImporterTests

    EditMode tests for BatchMusicTrackImporter: inference, advanced loop validation, advanced-settings serialization onto the created asset, duplicate detection and asset creation.

    Inheritance
    object
    BatchMusicTrackImporterTests
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    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 Music_TrackList 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. Mutates the project's real registry, so the appended entry is surgically removed again in finally.

    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()
    In this article
    © 2026 Serenity. All Rights Reserved