logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Namespace Serenity.UnityUi.Tests.Infrastructure

    Classes

    UnityToastComponentTests

    Tests for UnityToastComponent. Kept to the non-visual guard path (no prefab, no TMP, no coroutine), since the animated behaviour is verified visually in the editor: showing a toast without a prefab assigned must no-op safely rather than throw.

    UnityToastHostActivationTests

    A toast host that starts inactive never runs its own enable callback, so it cannot subscribe itself to the toast signal. The UI install binds every toast host in the instantiated UI — inactive ones included — and a toast signal then shows the toast, activating its host. A host that has already been on screen and is then hidden was hidden by its author on purpose, so a toast must leave it hidden and say so once.

    UnityUiTMP_TextLocalizationUpdaterLiteralLabelTests

    A menu option whose Translate Label is off shows its label exactly as typed: the label's localization updater never treats it as a key, so the game cannot turn it into a missing-key message.

    In this article
    © 2026 Serenity. All Rights Reserved