logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class UnityLoadingOverlayProgressAnimatorTests

    PlayMode tests for UnityLoadingOverlayProgressAnimator's promise that a started teardown always finishes.

    Driven against the component directly, because through UnityGameplayLoadingOverlayView the safety timeout is unreachable: the displayed fill and the elapsed timer consume the same unscaled delta, the fill three times faster, so from a full target the bar reaches 100% in a third of a second against a half-second cap and wins at any frame rate. Only a target lowered after the teardown began can stall the fill, and the view drops its animator reference in Hide(), so no caller can lower it. The component is public API of a shipped package, though, and the cap is what keeps a direct consumer's teardown from hanging forever — which is the contract these tests hold.

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

    Constructors

    UnityLoadingOverlayProgressAnimatorTests()

    Declaration
    public UnityLoadingOverlayProgressAnimatorTests()

    Methods

    CompleteThenDestroy_WhenTargetDropsBelowFull_DestroysRootAtSafetyCap()

    Declaration
    public IEnumerator CompleteThenDestroy_WhenTargetDropsBelowFull_DestroysRootAtSafetyCap()
    Returns
    Type Description
    IEnumerator

    TearDown()

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