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.
Inherited Members
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()