logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class UnityLeaderboardViewLocalizationTests

    EditMode tests for UnityLeaderboardView's runtime translation of authored column affixes: Configure(UnityLeaderboardViewDefinition, UnityLeaderboardPanel, ILeaderboardService, ILeaderboardSettings, IEventDispatcherService, IViewRouter, IViewBrowserService, SerenityUiContext, ILogService, IServiceLocator) resolves an ILocalizationService from the injected locator (mirroring ResolveHudElementService's lookup shape) and passes it into Map(IReadOnlyList<RankedEntry>, LeaderboardValueFormat, Func<string, string>) as the translator; rows re-render whenever GameLanguageChanged fires. Mirrors how lightly UnityLeaderboardViewLayoutTests and UnityLeaderboardViewHudElementTests build their own panel and view.

    Inheritance
    object
    UnityLeaderboardViewLocalizationTests
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.Leaderboard.Tests.Editor
    Assembly: Serenity.Leaderboard.Tests.Editor.dll
    Syntax
    public class UnityLeaderboardViewLocalizationTests

    Constructors

    UnityLeaderboardViewLocalizationTests()

    Declaration
    public UnityLeaderboardViewLocalizationTests()

    Methods

    Configure_WithALocalizationService_SubscribesToGameLanguageChanged()

    Declaration
    public void Configure_WithALocalizationService_SubscribesToGameLanguageChanged()

    Configure_WithoutALocator_DoesNotThrow()

    Declaration
    public void Configure_WithoutALocator_DoesNotThrow()

    GameLanguageChanged_AfterAPageRender_ReRendersRowsWithFreshTranslations()

    Declaration
    public void GameLanguageChanged_AfterAPageRender_ReRendersRowsWithFreshTranslations()

    OnDestroy_UnsubscribesFromGameLanguageChanged()

    Declaration
    public void OnDestroy_UnsubscribesFromGameLanguageChanged()

    SetUp()

    Declaration
    public void SetUp()

    TearDown()

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