logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class PreviewHitTestingTests

    EditMode tests for PreviewHitTesting's axis and deform-mapping helpers: pure UnityEngine.Vector2 geometry over a PreviewQuad, so these run without a rendered preview or a rig, alongside PreviewQuadTests.

    Inheritance
    object
    PreviewHitTestingTests
    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 PreviewHitTestingTests

    Constructors

    PreviewHitTestingTests()

    Declaration
    public PreviewHitTestingTests()

    Methods

    CentreLocal_ReturnsTheMidpointOfTheLocalBounds()

    Declaration
    public void CentreLocal_ReturnsTheMidpointOfTheLocalBounds()

    DeformedAxesFor_MapsEachHandleToItsAxes(int, bool, bool)

    Declaration
    public void DeformedAxesFor_MapsEachHandleToItsAxes(int handleValue, bool expectedX, bool expectedY)
    Parameters
    Type Name Description
    int handleValue
    bool expectedX
    bool expectedY

    GestureKindFor_MapsEachHandleToTheGestureItStarts(int, int)

    Declaration
    public void GestureKindFor_MapsEachHandleToTheGestureItStarts(int handleValue, int expectedKindValue)
    Parameters
    Type Name Description
    int handleValue
    int expectedKindValue

    InflatedForRotateBand_GrowsTheFrameByTheKnobsOuterReach()

    Declaration
    public void InflatedForRotateBand_GrowsTheFrameByTheKnobsOuterReach()

    LocalAxesFor_A90DegreeRotatedQuad_ReturnsTheRotatedAxes()

    Declaration
    public void LocalAxesFor_A90DegreeRotatedQuad_ReturnsTheRotatedAxes()

    ResolveFixedPointLocal_AMove_AlwaysHoldsTheCentre()

    Declaration
    public void ResolveFixedPointLocal_AMove_AlwaysHoldsTheCentre()

    ResolveFixedPointLocal_ARotateWithAlt_HoldsTheAnchorUncompensated()

    Declaration
    public void ResolveFixedPointLocal_ARotateWithAlt_HoldsTheAnchorUncompensated()

    ResolveFixedPointLocal_ARotateWithoutAlt_HoldsTheCentre()

    Declaration
    public void ResolveFixedPointLocal_ARotateWithoutAlt_HoldsTheCentre()

    ResolveFixedPointLocal_AScaleHandle_HoldsTheOppositePointAndSwapsToTheCentreOnAlt()

    Declaration
    public void ResolveFixedPointLocal_AScaleHandle_HoldsTheOppositePointAndSwapsToTheCentreOnAlt()

    ResolveHandle_NinetyDegreeRotatedQuad_KnobCentreResolvesToRotateHandle()

    Declaration
    public void ResolveHandle_NinetyDegreeRotatedQuad_KnobCentreResolvesToRotateHandle()

    ResolveHandle_PointOnTheStickBaseInsideTheQuad_DoesNotResolveToRotateHandle()

    Declaration
    public void ResolveHandle_PointOnTheStickBaseInsideTheQuad_DoesNotResolveToRotateHandle()

    ResolveHandle_UnrotatedQuad_KnobCentreResolvesToRotateHandle()

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