logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Namespace Serenity.UnityLocalization.Tests.Infrastructure

    Classes

    SerenityFallbackLocalizationServiceTests

    Tests for Serenity.Localization.Infrastructure.Services.SerenityFallbackLocalizationService — the plain-C# localization service used in ResourcesOnly/WebGL mode. It deliberately does NOT touch LocalizationSettings, Addressables, locales or string tables, so the whole surface is unit-testable without a live localization database.

    Covered: null-safe construction, game-language get/set + the GameLanguageChanged event (including the no-op-on-same-value short-circuit), voice-language get/set, GetStringTableReference, TryTranslate with no exported data, the Id/Guid/LogService accessors, game-settings language seeding via a fake service, and the event-dispatcher subscription / routing path.

    In this article
    © 2026 Serenity. All Rights Reserved