Class UnityAnimationAssetUtilsTests
EditMode tests for Serenity.Global.Infrastructure.Editor.UnityAnimationAssetUtils. Every fixture (clip, controller, prefab) is
built under a private temp folder and torn down after each test, mirroring
ModelAnimationScannerTests. Includes a regression guard pinning the exact keyframe literals
ThemeAnimationGenerator.SpecFor(ShowHideAnimation.ScalePop) fed into the overshoot curve builder
as they stood immediately before this type was extracted out of ThemeAnimationGenerator.
Inherited Members
Namespace: Serenity.UnityGlobal.Tests.Editor
Assembly: Tests.Editor.dll
Syntax
public class UnityAnimationAssetUtilsTests
Constructors
UnityAnimationAssetUtilsTests()
Declaration
public UnityAnimationAssetUtilsTests()
Methods
CreateClipAsset_Looping_SetsLoopTimeAndRecordsPath()
Declaration
public void CreateClipAsset_Looping_SetsLoopTimeAndRecordsPath()
CreateClipAsset_NonLooping_PersistsClipAndRecordsPath()
Declaration
public void CreateClipAsset_NonLooping_PersistsClipAndRecordsPath()
CreateController_CreatesControllerAssetAndRecordsPath()
Declaration
public void CreateController_CreatesControllerAssetAndRecordsPath()
Curves_Constant_HoldsSingleValueAcrossDuration()
Declaration
public void Curves_Constant_HoldsSingleValueAcrossDuration()
Curves_Eased_StartsAndEndsAtRequestedEndpoints()
Declaration
public void Curves_Eased_StartsAndEndsAtRequestedEndpoints()
Curves_Linear_StartsAndEndsAtRequestedEndpointsWithNoEasing()
Declaration
public void Curves_Linear_StartsAndEndsAtRequestedEndpointsWithNoEasing()
Curves_Overshoot_HasThreeKeysWithComputedPeak()
Declaration
public void Curves_Overshoot_HasThreeKeysWithComputedPeak()
Curves_Overshoot_MatchesThemeAnimationGeneratorScalePopShowCurve_PreRefactorLiterals()
Pins the exact keyframe literals ThemeAnimationGenerator.SpecFor(ShowHideAnimation.ScalePop)
fed into the overshoot curve for its "Show" clip (uniform 0 -> ~1.08 -> 1 spring, 0.30s in
duration) as they stood immediately before this type was extracted out of
ThemeAnimationGenerator. A failure here means either the curve math or the ScalePop spec's
literals drifted — verify which was intended before updating the pin.
Declaration
public void Curves_Overshoot_MatchesThemeAnimationGeneratorScalePopShowCurve_PreRefactorLiterals()
Curves_Pulse_ReturnsToStartAtEndOfPeriod()
Declaration
public void Curves_Pulse_ReturnsToStartAtEndOfPeriod()
EnsureAnimatorOnPrefab_AddsAnimatorWiresControllerAndRunsExtraSetup()
Declaration
public void EnsureAnimatorOnPrefab_AddsAnimatorWiresControllerAndRunsExtraSetup()
EnsureAnimatorOnPrefab_ExistingAnimator_ReusesItInsteadOfAddingASecondOne()
Declaration
public void EnsureAnimatorOnPrefab_ExistingAnimator_ReusesItInsteadOfAddingASecondOne()
SetUp()
Declaration
public void SetUp()
TearDown()
Declaration
public void TearDown()