Class DecayingJitterMotionTests
EditMode tests for Play(float, float, float, bool, Func<float>, Func<Vector3>): with an injected fixed delta-time and a
fixed direction sequence, the exact sample sequence the inline shake loop in
ScreenShakeChannel/UiScreenShakeChannel would produce is fully deterministic and
assertable without a coroutine or a Unity frame loop.
Inherited Members
Namespace: Serenity.Feedback.Tests.Editor
Assembly: Serenity.Feedback.Tests.Editor.dll
Syntax
public class DecayingJitterMotionTests
Constructors
DecayingJitterMotionTests()
Declaration
public DecayingJitterMotionTests()
Methods
Play_DirectionRerollCadence_Should_OnlyRerollAfterSecondsPerDirectionElapsed()
Declaration
public void Play_DirectionRerollCadence_Should_OnlyRerollAfterSecondsPerDirectionElapsed()
Play_FiniteDuration_Should_DecayMagnitudeLinearlyTowardZero()
Declaration
public void Play_FiniteDuration_Should_DecayMagnitudeLinearlyTowardZero()
Play_FiniteDuration_Should_YieldOneSamplePerStep_AndRerollDirectionEveryStep()
Declaration
public void Play_FiniteDuration_Should_YieldOneSamplePerStep_AndRerollDirectionEveryStep()
Play_Persistent_Should_SustainFullAmplitudeIndefinitely()
Declaration
public void Play_Persistent_Should_SustainFullAmplitudeIndefinitely()