logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class UnityGameScreenPresenterTests

    PlayMode tests for UnityGameScreenPresenter. The presenter toggles the GameObject root mapped to the active screen id and deactivates every other mapped root. The private serialized list is injected via reflection to exercise the matching path, the deactivation-of-others path, and the null-guard path.

    Inheritance
    object
    UnityGameScreenPresenterTests
    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 UnityGameScreenPresenterTests

    Constructors

    UnityGameScreenPresenterTests()

    Declaration
    public UnityGameScreenPresenterTests()

    Methods

    Implements_IGameScreenPresenter()

    Declaration
    public void Implements_IGameScreenPresenter()

    SetUp()

    Declaration
    public void SetUp()

    ShowScreen_ActivatesMatchingRoot()

    Declaration
    public void ShowScreen_ActivatesMatchingRoot()

    ShowScreen_DeactivatesNonMatchingRoots()

    Declaration
    public void ShowScreen_DeactivatesNonMatchingRoots()

    ShowScreen_NoMatchingMapping_DeactivatesAllRoots()

    Declaration
    public void ShowScreen_NoMatchingMapping_DeactivatesAllRoots()

    ShowScreen_UnassignedRootInMapping_DoesNotThrow()

    Declaration
    public void ShowScreen_UnassignedRootInMapping_DoesNotThrow()

    ShowScreen_WithNoMappings_DoesNotThrow()

    Declaration
    public void ShowScreen_WithNoMappings_DoesNotThrow()

    TearDown()

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