logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class 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.

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

    Constructors

    UnityToastHostActivationTests()

    Declaration
    public UnityToastHostActivationTests()

    Methods

    SetUp()

    Declaration
    public void SetUp()

    ShowToastSignal_AfterTheAuthorShowsTheHostAgain_ShowsTheToast()

    Declaration
    public IEnumerator ShowToastSignal_AfterTheAuthorShowsTheHostAgain_ShowsTheToast()
    Returns
    Type Description
    IEnumerator

    ShowToastSignal_WithTheHostHiddenByItsAuthor_KeepsTheHostHiddenAndWarnsOnce()

    Declaration
    public IEnumerator ShowToastSignal_WithTheHostHiddenByItsAuthor_KeepsTheHostHiddenAndWarnsOnce()
    Returns
    Type Description
    IEnumerator

    ShowToastSignal_WithTheHostInactiveAtStart_ShowsTheToast()

    Declaration
    public IEnumerator ShowToastSignal_WithTheHostInactiveAtStart_ShowsTheToast()
    Returns
    Type Description
    IEnumerator

    TearDown()

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