logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class UnityStateKeyTests

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

    Inheritance
    object
    UnityStateKeyTests
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.UnityProceduralAnimator.Tests.Infrastructure
    Assembly: Tests.dll
    Syntax
    public class UnityStateKeyTests

    Constructors

    UnityStateKeyTests()

    Declaration
    public UnityStateKeyTests()

    Methods

    Clamp_ClampsToRange()

    Declaration
    public void Clamp_ClampsToRange()

    DisplayName_FallsBackToObjectName()

    Declaration
    public void DisplayName_FallsBackToObjectName()

    Id_ReturnsAssignedId()

    Declaration
    public void Id_ReturnsAssignedId()

    ImplicitConversion_Null_ReturnsDefault()

    Declaration
    public void ImplicitConversion_Null_ReturnsDefault()

    ImplicitConversion_ToStateKeyId_Works()

    Declaration
    public void ImplicitConversion_ToStateKeyId_Works()

    Normalize_ClampsOutOfRange()

    Declaration
    public void Normalize_ClampsOutOfRange()

    Normalize_MapsRangeToZeroOne()

    Declaration
    public void Normalize_MapsRangeToZeroOne()

    Normalize_ZeroRange_ReturnsZero()

    Declaration
    public void Normalize_ZeroRange_ReturnsZero()

    RangeHint_MinMax_Match()

    Declaration
    public void RangeHint_MinMax_Match()

    SetUp()

    Declaration
    public void SetUp()

    TearDown()

    Declaration
    public void TearDown()

    ToStateKeyId_ConvertsValue()

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