logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class ScoreRuntimeBehaviorTests

    Additional behavioral tests for the ScoreRuntime entity.

    Inheritance
    object
    ScoreRuntimeBehaviorTests
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.Score.Tests.Domain
    Assembly: Tests.dll
    Syntax
    public class ScoreRuntimeBehaviorTests

    Constructors

    ScoreRuntimeBehaviorTests()

    Declaration
    public ScoreRuntimeBehaviorTests()

    Methods

    Add_PreservesKind()

    Declaration
    public void Add_PreservesKind()

    Add_UnregisteredKey_NoOp()

    Declaration
    public void Add_UnregisteredKey_NoOp()

    Divide_RegisteredByZero_Throws()

    Declaration
    public void Divide_RegisteredByZero_Throws()

    Divide_UnregisteredByZero_DoesNotThrow()

    Declaration
    public void Divide_UnregisteredByZero_DoesNotThrow()

    Divide_UnregisteredKey_NoOp()

    Declaration
    public void Divide_UnregisteredKey_NoOp()

    Multiply_UnregisteredKey_NoOp()

    Declaration
    public void Multiply_UnregisteredKey_NoOp()

    Register_DefaultKey_AllowedAndStored()

    Declaration
    public void Register_DefaultKey_AllowedAndStored()

    Register_ExistingKeyWithAccumulatedValue_ResetsToZero()

    Characterization test pinning the overwrite semantics an installer's single-registration policy depends on: re-registering an already-registered key resets its amount to the initial value, discarding whatever was accumulated in between. This is why UnityScoreInstaller.BuildMetricRegistry dedupes duplicate settings rows BEFORE calling Register — a second Register call on a key with a live value would zero it.

    Declaration
    public void Register_ExistingKeyWithAccumulatedValue_ResetsToZero()

    ResetAll_Empty_DoesNotThrow()

    Declaration
    public void ResetAll_Empty_DoesNotThrow()

    ResetAll_PreservesKinds()

    Declaration
    public void ResetAll_PreservesKinds()

    Reset_PreservesKind()

    Declaration
    public void Reset_PreservesKind()

    Reset_UnregisteredKey_NoOp()

    Declaration
    public void Reset_UnregisteredKey_NoOp()

    SequentialOperations_ProduceExpectedAmount()

    Declaration
    public void SequentialOperations_ProduceExpectedAmount()

    SetUp()

    Declaration
    public void SetUp()

    Set_PreservesKind()

    Declaration
    public void Set_PreservesKind()

    Set_UnregisteredKey_NoOp()

    Declaration
    public void Set_UnregisteredKey_NoOp()

    Subtract_UnregisteredKey_NoOp()

    Declaration
    public void Subtract_UnregisteredKey_NoOp()

    ToSnapshot_Empty_HasZeroCount()

    Declaration
    public void ToSnapshot_Empty_HasZeroCount()

    ToSnapshot_IsDefensiveCopy_NotAffectedByLaterChanges()

    Declaration
    public void ToSnapshot_IsDefensiveCopy_NotAffectedByLaterChanges()

    ToSnapshot_NotAffectedByLaterRegistration()

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