Class UnityHudElementAnimationTests
Tests for UnityHudElementAnimation's data model: its authored defaults and the two members it derives rather than stores verbatim — HasAnimationAsset and the normalized CooldownSeconds. Pure construction and reflection, with no view, no host and no live scene — the layer asset itself is the only Unity object involved.
Inherited Members
Namespace: Serenity.UnityGameUi.Tests.Infrastructure
Assembly: Tests.dll
Syntax
public class UnityHudElementAnimationTests
Constructors
UnityHudElementAnimationTests()
Declaration
public UnityHudElementAnimationTests()
Methods
CooldownSeconds_KeepsAnAuthoredZero()
Declaration
public void CooldownSeconds_KeepsAnAuthoredZero()
CooldownSeconds_NormalizesANegativeValueToZero()
Declaration
public void CooldownSeconds_NormalizesANegativeValueToZero()
Defaults_MatchAnUnauthoredEntry()
Declaration
public void Defaults_MatchAnUnauthoredEntry()
HasAnimationAsset_IsFalse_WithNoLayerAssigned()
Declaration
public void HasAnimationAsset_IsFalse_WithNoLayerAssigned()
HasAnimationAsset_IsTrue_OnceALayerIsAssigned()
Declaration
public void HasAnimationAsset_IsTrue_OnceALayerIsAssigned()
PlaysWhileHidden_DefaultsToFalse_WhenUnset()
Declaration
public void PlaysWhileHidden_DefaultsToFalse_WhenUnset()
PlaysWhileHidden_ReadsBackWhatWasAuthored()
Declaration
public void PlaysWhileHidden_ReadsBackWhatWasAuthored()
TearDown()
Declaration
public void TearDown()
Trigger_WatchedElementId_AndSignalTypeName_ReadBackWhatWasAuthored()
Declaration
public void Trigger_WatchedElementId_AndSignalTypeName_ReadBackWhatWasAuthored()