logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class UnityGameHudPresenterTests

    PlayMode tests for Serenity.GameUi.Infrastructure.Presenters.UnityGameHudPresenter. The presenter toggles a serialized HUD-root GameObject's active state. The private serialized field is injected via reflection to exercise both the active path and the null-guard path.

    Inheritance
    object
    UnityGameHudPresenterTests
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.UnityGameUi.Tests.Infrastructure
    Assembly: Tests.dll
    Syntax
    public class UnityGameHudPresenterTests

    Constructors

    UnityGameHudPresenterTests()

    Declaration
    public UnityGameHudPresenterTests()

    Methods

    HideHud_DeactivatesRoot()

    Declaration
    public void HideHud_DeactivatesRoot()

    Implements_IGameHudPresenter()

    Declaration
    public void Implements_IGameHudPresenter()

    Methods_WithNullRoot_DoNotThrow()

    Declaration
    public void Methods_WithNullRoot_DoNotThrow()

    SetUp()

    Declaration
    public void SetUp()

    ShowHud_ActivatesRoot()

    Declaration
    public void ShowHud_ActivatesRoot()

    TearDown()

    Declaration
    public void TearDown()

    UpdateHud_HiddenState_DeactivatesRoot()

    Declaration
    public void UpdateHud_HiddenState_DeactivatesRoot()

    UpdateHud_VisibleState_ActivatesRoot()

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