logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class WeightProviderTests

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

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

    Constructors

    WeightProviderTests()

    Declaration
    public WeightProviderTests()

    Methods

    Constant_DefaultWeightIsOne()

    Declaration
    public void Constant_DefaultWeightIsOne()

    Constant_ReturnsConfiguredWeight()

    Declaration
    public void Constant_ReturnsConfiguredWeight()

    StateKeyWeight_ExposesSourceKeyAndCurve()

    Declaration
    public void StateKeyWeight_ExposesSourceKeyAndCurve()

    StateKeyWeight_LinearCurve_ReturnsNormalizedStateValue()

    Declaration
    public void StateKeyWeight_LinearCurve_ReturnsNormalizedStateValue()

    StateKeyWeight_NullKey_EvaluatesCurveAtDefault()

    Declaration
    public void StateKeyWeight_NullKey_EvaluatesCurveAtDefault()

    StateKeyWeight_Validate_RequiresSourceKey()

    Declaration
    public void StateKeyWeight_Validate_RequiresSourceKey()

    TearDown()

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