Class HudTransformPlacementTests
Inheritance
HudTransformPlacementTests
Assembly: Tests.dll
public class HudTransformPlacementTests
Constructors
Declaration
public HudTransformPlacementTests()
Methods
Declaration
public void Deform_ClampsAtTheLowerBound()
Declaration
public void Deform_ClampsAtTheUpperBound()
Declaration
public void Deform_DegenerateStartVector_KeepsTheStartingStretch()
Declaration
public void Deform_DoesNotChangeScaleOrRotation()
Declaration
public void Deform_DraggingACornerHandle_ChangesBothAxesIndependently()
Declaration
public void Deform_DraggingTheRightEdgeHandle_IncreasesOnlyStretchX()
Declaration
public void Deform_DraggingTheTopEdgeHandle_IncreasesOnlyStretchY()
Declaration
public void Deform_ForAMirroredElementWithRotation_ProducesADisplayedResultThatIsTheMirrorOfTheUnmirroredOne()
Declaration
public void Deform_ForAMirroredElement_ProducesTheSameStretchAsAnUnmirroredElement()
Declaration
public void Deform_NotDeformedAxis_IsNeverClampedOrSnapped()
Declaration
public void Deform_NotDeformedAxis_KeepsExistingStretchUnchanged()
Declaration
public void Deform_PerpendicularMotionOnAnAxis_ClampsToTheFloorInsteadOfGoingNegative()
Declaration
public void Deform_PointerAtTheFixedPoint_ProducesNoNaNOrInfinity()
Declaration
public void Deform_SnapsStretchToTheStep()
Declaration
public void Deform_WithTheOppositeEdgeAsFixedPoint_KeepsThatEdgeStill()
Declaration
public void HudElementBasis_MirroringAPointBeforeAndAfter_MatchesRotatingTheOppositeWayUnmirrored(float rotationDegrees, float stretchX, float stretchY)
Parameters
Declaration
public void NormalizeDegrees_FoldsIntoTheHalfOpenRange(float input, float expected)
Parameters
Declaration
public void ResizeThenRotateThenResize_RoundTripsTheScaleAndFollowsThePredictedOffset()
Declaration
public void Resize_ClampsAtTheLowerBound_AndKeepsTheFixedPointStill()
Declaration
public void Resize_ClampsAtTheUpperBound_AndKeepsTheFixedPointStill()
Declaration
public void Resize_DegenerateStartVector_KeepsTheStartingScale()
Declaration
public void Resize_DoublingThePointerDistance_DoublesTheScale()
Resize_IgnoresAnchor_ProducingTheSameResultForEveryAnchor(UiAnchorType)
Declaration
public void Resize_IgnoresAnchor_ProducingTheSameResultForEveryAnchor(UiAnchorType anchor)
Parameters
Declaration
public void Resize_OnAStretchedElement_KeepsTheFixedPointStill()
Declaration
public void Resize_PerpendicularMotion_ClampsToTheFloorInsteadOfGoingNegative()
Declaration
public void Resize_PointerAtTheFixedPoint_ProducesNoNaNOrInfinity()
Declaration
public void Resize_SnapsTheScaleToTheStep()
Declaration
public void Resize_WithAFixedPointAtTheAnchor_LeavesTheOffsetByteIdentical()
Declaration
public void Resize_WithTheCentreAsTheFixedPoint_KeepsTheCentreStill()
Declaration
public void Resize_WithTheOppositeCorner_KeepsThatCornerStill()
Declaration
public void Rotate_AboutTheElementsCentre_KeepsTheCentreStill()
Declaration
public void Rotate_ForAMirroredElement_ClockwiseScreenSweepIncreasesTheAuthoredAngle()
Declaration
public void Rotate_ForAnUnmirroredElement_ClockwiseScreenSweepDecreasesTheAuthoredAngle()
Declaration
public void Rotate_NinetyDegreeCcwScreenSweep_ProducesPlusNinetyAuthored()
Declaration
public void Rotate_NinetyDegreeCwScreenSweep_ProducesMinusNinetyAuthored()
Declaration
public void Rotate_OnAStretchedElement_KeepsTheCentreStill()
Declaration
public void Rotate_SnapsToFifteenDegreesInDisplayedSpace()
Declaration
public void Rotate_SweepingPastOneEighty_WrapsContinuously()
Declaration
public void Rotate_WithAFixedPointAtTheAnchor_LeavesTheOffsetUntouched()
Declaration
public void ScaleRatio_IsInvariantToFlippingBothVectorsVertically()