Class AnimationClipEditorPanelStateTests
EditMode tests for the pure helpers on AnimationClipEditorPanelState — the only part of
AnimationClipEditorPanel that is GUI-free and therefore unit testable. Every other member
on the panel itself, and on AnimationClipCurveCache and AnimationClipPreviewScrubber,
only makes sense inside an OnGUI pass or against live UnityEditor.AnimationMode state and is
exempt from unit tests per the established Animation Hub pattern (the engines underneath already carry
the contract for every mutation the panel calls into).
Inherited Members
Namespace: Serenity.AnimationHub.Tests.Editor
Assembly: Tests.Editor.dll
Syntax
public class AnimationClipEditorPanelStateTests
Constructors
AnimationClipEditorPanelStateTests()
Declaration
public AnimationClipEditorPanelStateTests()
Methods
CanEditResolvedClip_NonNullClip_ReturnsTrue()
Declaration
public void CanEditResolvedClip_NonNullClip_ReturnsTrue()
CanEditResolvedClip_NullClip_ReturnsFalse()
Declaration
public void CanEditResolvedClip_NullClip_ReturnsFalse()
ClampScrubTimeForKeyAdd_NegativeTime_ClampsToZero()
Declaration
public void ClampScrubTimeForKeyAdd_NegativeTime_ClampsToZero()
ClampScrubTimeForKeyAdd_PastClipEnd_ClampsToLength()
Declaration
public void ClampScrubTimeForKeyAdd_PastClipEnd_ClampsToLength()
ClampScrubTimeForKeyAdd_WithinRange_ReturnsUnchanged()
Declaration
public void ClampScrubTimeForKeyAdd_WithinRange_ReturnsUnchanged()
ClampScrubTimeForKeyAdd_ZeroLengthClip_ClampsToZero()
Declaration
public void ClampScrubTimeForKeyAdd_ZeroLengthClip_ClampsToZero()
MatchesSearch_EmptySearch_MatchesEverything()
Declaration
public void MatchesSearch_EmptySearch_MatchesEverything()
MatchesSearch_MatchesGroupPath()
Declaration
public void MatchesSearch_MatchesGroupPath()
MatchesSearch_MatchesPropertyLabel()
Declaration
public void MatchesSearch_MatchesPropertyLabel()
MatchesSearch_NoMatch_ReturnsFalse()
Declaration
public void MatchesSearch_NoMatch_ReturnsFalse()
MatchesSearch_NullView_ReturnsFalse()
Declaration
public void MatchesSearch_NullView_ReturnsFalse()
ShouldRetargetAfterCopy_Failure_ReturnsFalse()
Declaration
public void ShouldRetargetAfterCopy_Failure_ReturnsFalse()
ShouldRetargetAfterCopy_NullResult_ReturnsFalse()
Declaration
public void ShouldRetargetAfterCopy_NullResult_ReturnsFalse()
ShouldRetargetAfterCopy_SuccessWithPath_ReturnsTrue()
Declaration
public void ShouldRetargetAfterCopy_SuccessWithPath_ReturnsTrue()
ShouldRetargetAfterCopy_SuccessWithoutPath_ReturnsFalse()
Declaration
public void ShouldRetargetAfterCopy_SuccessWithoutPath_ReturnsFalse()