logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class HudAnimationTemplateRegistryTests

    EditMode tests for HudAnimationTemplateRegistry: the pure-data checks (template shape, Register(Template) validation, MenuLabel) plus each hand-written template's own Create delegate, which writes a real layer asset to disk — so, unlike a purely in-memory fixture, those tests need the same temp-folder create/delete shape HudElementAnimationListGuiTests uses for its own asset-writing tests.

    Inheritance
    object
    HudAnimationTemplateRegistryTests
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.GameUi.Tests.Editor.Builder
    Assembly: Serenity.GameUi.Tests.Editor.dll
    Syntax
    public class HudAnimationTemplateRegistryTests
    Remarks

    HudAnimationTemplateRegistry is a process-wide static registry with no public Unregister seam — unlike AnimationHubClipEditorRegistry's single-slot last-wins registration, an entry added here stays registered until something removes it. A test that registers a throwaway template records it in Serenity.GameUi.Tests.Editor.Builder.HudAnimationTemplateRegistryTests._templatesRegisteredDuringTest and TearDown() unregisters every one of them via the test-only internal Serenity.GameUi.Infrastructure.Editor.Builder.HudAnimationTemplateRegistry.Unregister(Serenity.GameUi.Infrastructure.Editor.Builder.HudAnimationTemplateRegistry.Template) seam, so a leaked entry never survives into the next test — required for All_ContainsExactlyExpectedBuiltInTemplateCount() to stay accurate across repeated in-editor runs, where the domain never reloads between them. Register_AppendsNewTemplateToAll() additionally reads the count immediately before registering, rather than assuming a fixed starting count, so it does not need to run in any particular order to stay correct.

    Constructors

    HudAnimationTemplateRegistryTests()

    Declaration
    public HudAnimationTemplateRegistryTests()

    Methods

    All_ContainsExactlyExpectedBuiltInTemplateCount()

    Declaration
    public void All_ContainsExactlyExpectedBuiltInTemplateCount()

    ArcadeStrobe_Create_BakesNineStepsOneShotConfigurationEndingHidden()

    Declaration
    public void ArcadeStrobe_Create_BakesNineStepsOneShotConfigurationEndingHidden()

    ArcadeStrobe_HasExpectedShape()

    Declaration
    public void ArcadeStrobe_HasExpectedShape()

    Blink_PlaysWhileHidden()

    Declaration
    public void Blink_PlaysWhileHidden()

    DamageFlash_Create_BakesFiveStepsOneShotConfigurationEndingAtWhite()

    Declaration
    public void DamageFlash_Create_BakesFiveStepsOneShotConfigurationEndingAtWhite()

    DamageFlash_HasExpectedShape()

    Declaration
    public void DamageFlash_HasExpectedShape()

    FadeIn_Create_BakesTwoStepsOneShotConfiguration()

    Declaration
    public void FadeIn_Create_BakesTwoStepsOneShotConfiguration()

    FadeIn_PlaysWhileHidden()

    Declaration
    public void FadeIn_PlaysWhileHidden()

    GhostPulse_Create_BakesTwoStepsAmbientLoopConfiguration()

    Declaration
    public void GhostPulse_Create_BakesTwoStepsAmbientLoopConfiguration()

    GhostPulse_HasExpectedShape()

    Declaration
    public void GhostPulse_HasExpectedShape()

    Heartbeat_Create_BakesFiveStepsAmbientLoopConfiguration()

    Declaration
    public void Heartbeat_Create_BakesFiveStepsAmbientLoopConfiguration()

    Heartbeat_HasExpectedShape()

    Declaration
    public void Heartbeat_HasExpectedShape()

    InsertCoinBlink_Create_BakesTwoStepsAmbientLoopConfiguration()

    Declaration
    public void InsertCoinBlink_Create_BakesTwoStepsAmbientLoopConfiguration()

    InsertCoinBlink_HasExpectedShape()

    Declaration
    public void InsertCoinBlink_HasExpectedShape()

    MenuLabel_NoPresetLabel_FallsBackToBareDisplayName()

    Declaration
    public void MenuLabel_NoPresetLabel_FallsBackToBareDisplayName()

    MenuLabel_PresetLabelSet_JoinsDisplayNameAndPresetLabelWithEmDash()

    Declaration
    public void MenuLabel_PresetLabelSet_JoinsDisplayNameAndPresetLabelWithEmDash()

    PopIn_Create_BakesThreeStepsOneShotConfiguration()

    Declaration
    public void PopIn_Create_BakesThreeStepsOneShotConfiguration()

    PopIn_HasExpectedShape()

    Declaration
    public void PopIn_HasExpectedShape()

    Pulse_Create_BakesTwoStepsAmbientLoopConfiguration()

    Declaration
    public void Pulse_Create_BakesTwoStepsAmbientLoopConfiguration()

    Pulse_HasExpectedShape()

    Declaration
    public void Pulse_HasExpectedShape()

    Register_AppendsNewTemplateToAll()

    Declaration
    public void Register_AppendsNewTemplateToAll()

    Register_NoLayerType_ThrowsArgumentException()

    Declaration
    public void Register_NoLayerType_ThrowsArgumentException()

    Register_NoPresetLabel_ThrowsArgumentException()

    Declaration
    public void Register_NoPresetLabel_ThrowsArgumentException()

    Register_TemplateForAlreadyHudCompatibleLayerType_BackfillDoesNotAddDuplicateForThatType()

    Declaration
    public void Register_TemplateForAlreadyHudCompatibleLayerType_BackfillDoesNotAddDuplicateForThatType()

    RetroSpin_Create_BakesFourStepsAmbientLoopConfiguration()

    Declaration
    public void RetroSpin_Create_BakesFourStepsAmbientLoopConfiguration()

    RetroSpin_HasExpectedShape()

    Declaration
    public void RetroSpin_HasExpectedShape()

    Rumble_Create_BakesSixStepsOneShotConfigurationEndingAtRest()

    Declaration
    public void Rumble_Create_BakesSixStepsOneShotConfigurationEndingAtRest()

    Rumble_HasExpectedShape()

    Declaration
    public void Rumble_HasExpectedShape()

    ScalePunch_DoesNotPlayWhileHidden()

    Declaration
    public void ScalePunch_DoesNotPlayWhileHidden()

    SetUp()

    Declaration
    public void SetUp()

    Shake_Create_BakesSixStepsOneShotConfigurationEndingAtRest()

    Declaration
    public void Shake_Create_BakesSixStepsOneShotConfigurationEndingAtRest()

    Shake_HasExpectedShape()

    Declaration
    public void Shake_HasExpectedShape()

    SlideIn_Create_BakesTwoStepsOneShotConfiguration()

    Declaration
    public void SlideIn_Create_BakesTwoStepsOneShotConfiguration()

    SlideIn_HasExpectedShape()

    Declaration
    public void SlideIn_HasExpectedShape()

    TearDown()

    Declaration
    public void TearDown()

    Wiggle_Create_BakesFourStepsOneShotConfigurationEndingAtRest()

    Declaration
    public void Wiggle_Create_BakesFourStepsOneShotConfigurationEndingAtRest()

    Wiggle_HasExpectedShape()

    Declaration
    public void Wiggle_HasExpectedShape()
    In this article
    © 2026 Serenity. All Rights Reserved