Class UnityHudHostComponentAnimatorTests
PlayMode characterization tests for the two UnityHudHostComponent pieces
UnityHudHostComponentTests never exercises: the shared ProceduralAnimatorComponent
lifecycle (BuildAnimator/EnsureAnimator/TearDownAnimator) and the safe-area anchor
write gated by _appliedSafeArea in Update. A sibling file rather than an addition to that
suite, which already sits at the file-size ratchet.
Inheritance
UnityHudHostComponentAnimatorTests
Assembly: Tests.dll
Syntax
public class UnityHudHostComponentAnimatorTests
Constructors
UnityHudHostComponentAnimatorTests()
Declaration
public UnityHudHostComponentAnimatorTests()
Methods
AppliedSafeArea_UnchangedScreenSafeArea_SkipsRewritingAnchors()
Declaration
public void AppliedSafeArea_UnchangedScreenSafeArea_SkipsRewritingAnchors()
Clear_TearsDownTheAnimatorAndClearsTheField()
Declaration
public IEnumerator Clear_TearsDownTheAnimatorAndClearsTheField()
Returns
EnsureAnimator_CalledTwice_ReusesTheSameInstance()
Declaration
public void EnsureAnimator_CalledTwice_ReusesTheSameInstance()
HideHud_DoesNotTearDownTheAnimator()
Declaration
public void HideHud_DoesNotTearDownTheAnimator()
OnElementAnimationRequested_WithNoAnimatorBuilt_DoesNotThrow()
Declaration
public void OnElementAnimationRequested_WithNoAnimatorBuilt_DoesNotThrow()
RespectSafeAreaFalse_LeavesAnchorsUntouchedAcrossUpdate()
Declaration
public IEnumerator RespectSafeAreaFalse_LeavesAnchorsUntouchedAcrossUpdate()
Returns
SetUp()
Declaration
ShowHud_HudWithNoAnimatedElements_NeverBuildsAnAnimator()
Declaration
public void ShowHud_HudWithNoAnimatedElements_NeverBuildsAnAnimator()
ShowHud_SameHudShownAgain_TakesTheFastPathAndKeepsTheSameAnimator()
Declaration
public void ShowHud_SameHudShownAgain_TakesTheFastPathAndKeepsTheSameAnimator()
ShowHud_SwitchingToAnotherHudAndBack_TearsDownThenBuildsAFreshAnimatorInstance()
Declaration
public IEnumerator ShowHud_SwitchingToAnotherHudAndBack_TearsDownThenBuildsAFreshAnimatorInstance()
Returns
ShowHud_WithAnimatedElement_BuildsTheAnimatorOnceAndKeepsItAcrossFrames()
Declaration
public IEnumerator ShowHud_WithAnimatedElement_BuildsTheAnimatorOnceAndKeepsItAcrossFrames()
Returns
TearDown()
Declaration