Class UnityActivationApplierTests
PlayMode tests for UnityActivationApplier. Registers real GameObjects and asserts activeSelf after applying ActivationDeltas.
Inherited Members
Namespace: Serenity.UnityProceduralAnimator.Tests.Infrastructure
Assembly: Tests.dll
Syntax
public class UnityActivationApplierTests
Constructors
UnityActivationApplierTests()
Declaration
public UnityActivationApplierTests()
Methods
Apply_AlreadyAtDesiredState_DoesNotThrow()
Declaration
public void Apply_AlreadyAtDesiredState_DoesNotThrow()
Apply_EmptyDeltaAfterOverride_FallsBackToOriginalWithoutExplicitReset()
Regression test: Apply must be self-correcting in a single pass. Previously the caller (ProceduralAnimatorComponent.Tick) reset every target to its original state before Apply overrode it again, which meant two SetActive calls (and a full OnEnable/OnDisable cycle) per tick for any overridden target. Apply now falls back to the cached original state on its own when no delta entry overrides a target, so no explicit reset call is needed between calls.
Declaration
public void Apply_EmptyDeltaAfterOverride_FallsBackToOriginalWithoutExplicitReset()
Apply_EmptyDelta_DoesNothing()
Declaration
public void Apply_EmptyDelta_DoesNothing()
Apply_NullDelta_DoesNotThrow()
Declaration
public void Apply_NullDelta_DoesNotThrow()
Apply_SetActiveFalse_DeactivatesGameObject()
Declaration
public void Apply_SetActiveFalse_DeactivatesGameObject()
Apply_SetActiveTrue_ActivatesGameObject()
Declaration
public void Apply_SetActiveTrue_ActivatesGameObject()
Apply_UnregisteredId_IgnoredAndDoesNotThrow()
Declaration
public void Apply_UnregisteredId_IgnoredAndDoesNotThrow()
ClearTargets_RemovesAll()
Declaration
public void ClearTargets_RemovesAll()
RegisterTarget_IncrementsTargetCount()
Declaration
public void RegisterTarget_IncrementsTargetCount()
RegisterTarget_NullGameObject_NotRegistered()
Declaration
public void RegisterTarget_NullGameObject_NotRegistered()
ResetToOriginalActive_RestoresCachedState()
Declaration
public void ResetToOriginalActive_RestoresCachedState()
SetUp()
Declaration
public void SetUp()
TearDown()
Declaration
public void TearDown()
UnregisterTarget_RemovesTarget()
Declaration
public void UnregisterTarget_RemovesTarget()