logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class RuleSOTests

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

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

    Constructors

    RuleSOTests()

    Declaration
    public RuleSOTests()

    Methods

    DefaultCondition_IsAlwaysTrue_And_IsConditionMet_True()

    Declaration
    public void DefaultCondition_IsAlwaysTrue_And_IsConditionMet_True()

    Effect_DefaultsToSetLayerWeight()

    Declaration
    public void Effect_DefaultsToSetLayerWeight()

    GetMappedWeight_NoProvider_ReturnsOne()

    Declaration
    public void GetMappedWeight_NoProvider_ReturnsOne()

    GetMappedWeight_WithConstantProvider_ReturnsProviderValue()

    Declaration
    public void GetMappedWeight_WithConstantProvider_ReturnsProviderValue()

    IsConditionMet_NotAlwaysTrue_IsFalse()

    Declaration
    public void IsConditionMet_NotAlwaysTrue_IsFalse()

    IsConditionMet_NullCondition_IsTrue()

    Declaration
    public void IsConditionMet_NullCondition_IsTrue()

    ResetCondition_DoesNotThrow()

    Declaration
    public void ResetCondition_DoesNotThrow()

    RuleEffect_EnumValues_AreStable()

    Declaration
    public void RuleEffect_EnumValues_AreStable()

    RuleSO_FreshInstance_HasNonEmptyGuid()

    Declaration
    public void RuleSO_FreshInstance_HasNonEmptyGuid()

    RuleSO_Id_RoundTrips()

    Declaration
    public void RuleSO_Id_RoundTrips()

    RuleSO_ImplementsIFoundationSettings()

    Declaration
    public void RuleSO_ImplementsIFoundationSettings()

    TearDown()

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