logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Namespace Serenity.UnityProceduralExpression.Tests.Infrastructure

    Classes

    ConditionTests

    Tests for the inline Condition hierarchy: AlwaysTrue, Threshold (hysteresis), Range, And/Or/Not composites, plus validation messages. State is supplied via a FakeStateReader and UnityProceduralContext.

    LayerAndActionSOTests

    Tests for representative ProceduralLayerSO / ProceduralActionSO assets that are deterministic without the per-frame animator loop: PeriodicOscillationLayerSO (uses ctx.Time) and FlinchActionSO (driven directly via ActionRuntimeState).

    RuleSOTests

    Tests for RuleSO: default condition behavior, condition evaluation, weight mapping via an injected WeightProvider, and the RuleEffect enum.

    SettingsRefTests

    Tests for the serializable ID reference structs (BoneIdRef, MaterialIdRef, TransformIdRef) and BoneBinding: conversions to domain IDs, validity, equality, implicit operators.

    StateBusComponentTests

    PlayMode tests for StateBusComponent (MonoBehaviour implementing IStateReader). Smoothing is left disabled (default) so Set/Get is synchronous and deterministic.

    TargetMappingTests

    Tests for UnityTransformTargetMapping and UnityMaterialTargetMapping: path-based resolution against real Transform hierarchies, validity, defaults, ToString.

    TransformRigApplierTests

    PlayMode tests for TransformRigApplier. Drives real Unity Transforms via a runtime UnityRigDefinition and asserts the resulting localPosition / localRotation after applying engine-agnostic PoseDeltas.

    UnityMaterialApplierTests

    PlayMode tests for UnityMaterialApplier. Validates target registration bookkeeping and that Apply against a real Renderer with a real Material does not throw and respects guard clauses.

    UnityProceduralContextTests

    Tests for UnityProceduralContext: state access by UnityStateKey/StateKeyId, null-safety, and conversion to the domain ProceduralContext.

    UnityRigDefinitionTests

    PlayMode tests for UnityRigDefinition (MonoBehaviour). Builds a rig on a real GameObject and validates bone lookup by string and domain BoneId.

    UnityShaderColorPropertyResolverTests

    PlayMode tests for UnityShaderColorPropertyResolver. Uses real Materials to validate color-property resolution and caching.

    UnityStateKeyTests

    Tests for UnityStateKey ScriptableObject: clamp/normalize math, range hints, and conversion to the domain StateKeyId.

    UnityTransformApplierTests

    PlayMode tests for UnityTransformApplier. Registers real Transforms and asserts localScale after applying TransformDeltas (scale is applied as a multiplier against the cached original scale).

    WeightProviderTests

    Tests for the WeightProviderSO implementations: ConstantWeightProviderSO (fixed value) and StateKeyWeightProviderSO (state read + curve mapping).

    In this article
    © 2026 Serenity. All Rights Reserved