logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class UnityScoreServiceTests

    PlayMode tests for Serenity.Score.Infrastructure.Services.UnityScoreService. The service is a MonoBehaviour, driven via AddComponent + its public API. Verifies delegation to the Domain ScoreRuntime entity (no scene/persistence needed).

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

    Constructors

    UnityScoreServiceTests()

    Declaration
    public UnityScoreServiceTests()

    Methods

    Add_IncreasesAmount()

    Declaration
    public void Add_IncreasesAmount()

    Divide_ScalesAmount()

    Declaration
    public void Divide_ScalesAmount()

    GetSnapshot_ContainsRegisteredMetrics()

    Declaration
    public void GetSnapshot_ContainsRegisteredMetrics()

    GetSnapshot_IsDecoupledFromSubsequentMutations()

    Declaration
    public void GetSnapshot_IsDecoupledFromSubsequentMutations()

    IdAndGuid_Properties_RoundTrip()

    Declaration
    public void IdAndGuid_Properties_RoundTrip()

    Implements_IScoreService()

    Declaration
    public void Implements_IScoreService()

    InitializeService_NullLogAndNullRepository_DoesNotThrow()

    Declaration
    public void InitializeService_NullLogAndNullRepository_DoesNotThrow()

    InitializeService_SetsIdAndGuid()

    Declaration
    public void InitializeService_SetsIdAndGuid()

    LogService_Property_RoundTrips()

    Declaration
    public void LogService_Property_RoundTrips()

    Multiply_ScalesAmount()

    Declaration
    public void Multiply_ScalesAmount()

    Register_ThenTryGetValue_ReturnsZeroOfKind()

    Declaration
    public void Register_ThenTryGetValue_ReturnsZeroOfKind()

    ResetAll_ZeroesEveryMetricButKeepsKind()

    Declaration
    public void ResetAll_ZeroesEveryMetricButKeepsKind()

    ResetKey_ZeroesSingleMetric()

    Declaration
    public void ResetKey_ZeroesSingleMetric()

    SetUp()

    Declaration
    public void SetUp()

    Set_OverwritesAmount()

    Declaration
    public void Set_OverwritesAmount()

    Subtract_DecreasesAmount()

    Declaration
    public void Subtract_DecreasesAmount()

    TearDown()

    Declaration
    public void TearDown()

    TryGetValue_UnregisteredKey_ReturnsFalse()

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