logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Namespace Serenity.UnityScore.Tests.Infrastructure

    Classes

    UnityScoreRepositoryTests

    PlayMode tests for UnityScoreRepository. Exercises the PlayerPrefs-backed persistence and the best/worst/average aggregation logic. Each test cleans the prefs keys it touches so runs are isolated.

    UnityScoreServiceTests

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

    UnityScoreSettingsTests

    Tests for the UnityScoreSettings ScriptableObject. Verifies default field values and the explicit IFoundationSettings identity round-trip.

    UnityTransformDistanceScoreMeterTests

    PlayMode tests for UnityTransformDistanceScoreMeter: axis masking, accumulation, scorePerUnit scaling, the teleport guard, the pre-registration gate (no self-register, no buffering, origin re-seed), the disable/enable lifecycle, and the grace-period warn-once latch.

    In this article
    © 2026 Serenity. All Rights Reserved