logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class PreviewGestureCoordinatorTests

    EditMode tests for PreviewGestureCoordinator's state and lookup surface: the selection it owns, the placement it resolves an index to, and the guard that tells it whether there is a rendered rig to work against at all.

    Inheritance
    object
    PreviewGestureCoordinatorTests
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.Ui.Tests.Editor.Preview
    Assembly: Tests.Editor.dll
    Syntax
    public class PreviewGestureCoordinatorTests
    Remarks

    The gesture pipeline itself is driven by Event.current and GUIUtility.hotControl, which only exist inside an IMGUI pass, so it is out of scope here the same way the preview window's own drawing is. What these cover is the half that used to be unreachable at all: while this logic lived in a partial facet of an UnityEditor.EditorWindow there was nothing to construct, and the preview had zero bound cases as a result.

    Every provider is fed by hand, including a fake IPreviewPlacementTarget holding plain PreviewElementPlacement values rather than a HUD — the point of the shape is that nothing here needs a window, a rig, a render, or any one kind of asset.

    Constructors

    PreviewGestureCoordinatorTests()

    Declaration
    public PreviewGestureCoordinatorTests()

    Methods

    Cancel_WithNoGestureRunning_DoesNothingAtAll()

    Declaration
    public void Cancel_WithNoGestureRunning_DoesNothingAtAll()

    ContainerFor_AnElementTheRigBuilt_ReturnsItsContainer()

    Declaration
    public void ContainerFor_AnElementTheRigBuilt_ReturnsItsContainer()

    ContainerFor_AnElementTheRigSkipped_ReturnsNull()

    Declaration
    public void ContainerFor_AnElementTheRigSkipped_ReturnsNull()

    ContainerFor_BeforeAnyRender_ReturnsNull()

    Declaration
    public void ContainerFor_BeforeAnyRender_ReturnsNull()

    ContainerFor_ReadsTheProviderEveryCallRatherThanItsStartingValue()

    Declaration
    public void ContainerFor_ReadsTheProviderEveryCallRatherThanItsStartingValue()

    DescribeElement_DelegatesToTheTarget()

    Declaration
    public void DescribeElement_DelegatesToTheTarget()

    HasRenderedContent_WithNoRigYet_IsFalse()

    Declaration
    public void HasRenderedContent_WithNoRigYet_IsFalse()

    IsLive_IsFalseUntilSomethingIsSelectedOrHovered()

    Declaration
    public void IsLive_IsFalseUntilSomethingIsSelectedOrHovered()

    SelectSilently_SelectsWithoutReportingTheSelectionBack()

    Declaration
    public void SelectSilently_SelectsWithoutReportingTheSelectionBack()

    SelectedElementIndex_OnAFreshCoordinator_IsNothingSelected()

    Declaration
    public void SelectedElementIndex_OnAFreshCoordinator_IsNothingSelected()

    SetUp()

    Declaration
    public void SetUp()

    TearDown()

    Declaration
    public void TearDown()

    TryPlacementAt_AnIndexOutsideTheTarget_ReturnsFalse(int)

    Declaration
    public void TryPlacementAt_AnIndexOutsideTheTarget_ReturnsFalse(int elementIndex)
    Parameters
    Type Name Description
    int elementIndex

    TryPlacementAt_AnIndexTheTargetHas_ReturnsThatPlacement()

    Declaration
    public void TryPlacementAt_AnIndexTheTargetHas_ReturnsThatPlacement()

    TryPlacementAt_WithNoElementsAtAll_ReturnsFalse()

    Declaration
    public void TryPlacementAt_WithNoElementsAtAll_ReturnsFalse()
    In this article
    © 2026 Serenity. All Rights Reserved