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.
Inherited Members
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()