logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class UnityLeaderboardPanelTests

    EditMode tests for UnityLeaderboardPanel's procedural fallback (built by CreateProcedural(Transform, GameObject), the path used when no theme LeaderboardTemplate is configured). Builds a throwaway hierarchy per test; TearDown() destroys it.

    Inheritance
    object
    UnityLeaderboardPanelTests
    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 UnityLeaderboardPanelTests

    Constructors

    UnityLeaderboardPanelTests()

    Declaration
    public UnityLeaderboardPanelTests()

    Methods

    ApplyElementPlacements_AddsIgnoreLayoutElementToEachTarget()

    Declaration
    public void ApplyElementPlacements_AddsIgnoreLayoutElementToEachTarget()

    ApplyElementPlacements_Background_MovesTheChildBackgroundWithoutMovingTitleOrRows()

    Declaration
    public void ApplyElementPlacements_Background_MovesTheChildBackgroundWithoutMovingTitleOrRows()

    ApplyElementPlacements_DisablesRootLayoutGroupAndContentSizeFitter()

    Declaration
    public void ApplyElementPlacements_DisablesRootLayoutGroupAndContentSizeFitter()

    ApplyElementPlacements_Hidden_DeactivatesTarget()

    Declaration
    public void ApplyElementPlacements_Hidden_DeactivatesTarget()

    ApplyElementPlacements_NotHidden_DoesNotReactivateAnElementSetTitleAlreadyHid()

    Declaration
    public void ApplyElementPlacements_NotHidden_DoesNotReactivateAnElementSetTitleAlreadyHid()

    ApplyElementPlacements_ReappliedAfterSetRows_KeepsPlacements()

    Declaration
    public void ApplyElementPlacements_ReappliedAfterSetRows_KeepsPlacements()

    ApplyElementPlacements_RowsSizeBothAxes_SetsSizeDeltaOnTheTableRootDirectly()

    Declaration
    public void ApplyElementPlacements_RowsSizeBothAxes_SetsSizeDeltaOnTheTableRootDirectly()

    ApplyElementPlacements_RowsSizeOnlyVerticalAxis_LeavesTheHorizontalSizeDeltaUntouched()

    Declaration
    public void ApplyElementPlacements_RowsSizeOnlyVerticalAxis_LeavesTheHorizontalSizeDeltaUntouched()

    ApplyElementPlacements_ScrollableWithAnAuthoredRowsSize_SizesTheTableToTheAuthoredHeight()

    Declaration
    public void ApplyElementPlacements_ScrollableWithAnAuthoredRowsSize_SizesTheTableToTheAuthoredHeight()

    ApplyElementPlacements_SetsAnchorPivotAndPositionPerElement()

    Declaration
    public void ApplyElementPlacements_SetsAnchorPivotAndPositionPerElement()

    ApplyElementPlacements_SetsLocalRotationFromRotationDegrees()

    Declaration
    public void ApplyElementPlacements_SetsLocalRotationFromRotationDegrees()

    ApplyElementPlacements_SetsLocalScaleFromScaleAndStretch()

    Declaration
    public void ApplyElementPlacements_SetsLocalScaleFromScaleAndStretch()

    ApplyElementPlacements_SizeAboveZero_SetsSizeDeltaOnlyOnAuthoredAxes()

    Declaration
    public void ApplyElementPlacements_SizeAboveZero_SetsSizeDeltaOnlyOnAuthoredAxes()

    ApplyThemeTitleTemplate_NonProceduralPanel_DoesNotReplaceTheAuthoredHeader()

    Declaration
    public void ApplyThemeTitleTemplate_NonProceduralPanel_DoesNotReplaceTheAuthoredHeader()

    ApplyThemeTitleTemplate_NullTemplate_LeavesTheProceduralHeaderInPlace()

    Declaration
    public void ApplyThemeTitleTemplate_NullTemplate_LeavesTheProceduralHeaderInPlace()

    ApplyThemeTitleTemplate_ProceduralPanel_ReplacesTheHeaderWithATemplateInstance()

    Declaration
    public void ApplyThemeTitleTemplate_ProceduralPanel_ReplacesTheHeaderWithATemplateInstance()

    ApplyThemeTitleTemplate_ThenSetTitle_WritesTextIntoTheNewInstance()

    Declaration
    public void ApplyThemeTitleTemplate_ThenSetTitle_WritesTextIntoTheNewInstance()

    ApplyThemeTitleTemplate_TryResolveElementRectTitle_ResolvesTheNewInstance()

    Declaration
    public void ApplyThemeTitleTemplate_TryResolveElementRectTitle_ResolvesTheNewInstance()

    ConfigureBackground_ChildNamedBackground_AppliesSpriteAndTintToItsOwnImage()

    Declaration
    public void ConfigureBackground_ChildNamedBackground_AppliesSpriteAndTintToItsOwnImage()

    ConfigureBackground_ChildNamedBackground_TogglesActiveState()

    Declaration
    public void ConfigureBackground_ChildNamedBackground_TogglesActiveState()

    ConfigureBackground_NoSpriteOverride_KeepsTheExistingSpriteButStillAppliesTheTint()

    Declaration
    public void ConfigureBackground_NoSpriteOverride_KeepsTheExistingSpriteButStillAppliesTheTint()

    ConfigureBackground_ProceduralFallback_Invisible_DeactivatesTheBackgroundChild()

    Declaration
    public void ConfigureBackground_ProceduralFallback_Invisible_DeactivatesTheBackgroundChild()

    ConfigureBackground_ProceduralFallback_ThemeWhiteTint_ShowsTheProceduralAuthoredColorNotWhite()

    Declaration
    public void ConfigureBackground_ProceduralFallback_ThemeWhiteTint_ShowsTheProceduralAuthoredColorNotWhite()

    ConfigureBackground_ProceduralFallback_VisibleWithSpriteAndTint_SetsSpriteAndColorOnTheBackgroundChild()

    Declaration
    public void ConfigureBackground_ProceduralFallback_VisibleWithSpriteAndTint_SetsSpriteAndColorOnTheBackgroundChild()

    ConfigureBackground_Style_CustomKeepSprite_LeavesImageTypeAlone()

    Declaration
    public void ConfigureBackground_Style_CustomKeepSprite_LeavesImageTypeAlone()

    ConfigureBackground_Style_CustomNineSlice_SetsSlicedImageTypeAndPixelsPerUnitMultiplier()

    Declaration
    public void ConfigureBackground_Style_CustomNineSlice_SetsSlicedImageTypeAndPixelsPerUnitMultiplier()

    ConfigureBackground_Style_CustomThenBackToTheme_RestoresTheAuthoredSpriteAndComposedColor()

    Declaration
    public void ConfigureBackground_Style_CustomThenBackToTheme_RestoresTheAuthoredSpriteAndComposedColor()

    ConfigureBackground_Style_HiddenMode_DeactivatesTheBackgroundChild()

    Declaration
    public void ConfigureBackground_Style_HiddenMode_DeactivatesTheBackgroundChild()

    ConfigureBackground_Style_PixelsPerUnitMultiplierIsClampedToItsMinimum()

    Declaration
    public void ConfigureBackground_Style_PixelsPerUnitMultiplierIsClampedToItsMinimum()

    ConfigureBackground_Style_ThemeMode_ColoredTintMultipliesWithTheAuthoredColor()

    Declaration
    public void ConfigureBackground_Style_ThemeMode_ColoredTintMultipliesWithTheAuthoredColor()

    ConfigureBackground_Style_ThemeMode_ComposesTintWithAuthoredColorSpriteAndImageTypeUntouched()

    Declaration
    public void ConfigureBackground_Style_ThemeMode_ComposesTintWithAuthoredColorSpriteAndImageTypeUntouched()

    ConfigureBackground_Style_ThemeMode_WhiteTintKeepsAnAuthoredNonWhiteColorExactly()

    Declaration
    public void ConfigureBackground_Style_ThemeMode_WhiteTintKeepsAnAuthoredNonWhiteColorExactly()

    ConfigureBackground_ThreeArgOverload_KeepsTheSpritesExistingImageTypeUntouched()

    Declaration
    public void ConfigureBackground_ThreeArgOverload_KeepsTheSpritesExistingImageTypeUntouched()

    ConfigureRowsScrolling_Off_NeverBuildsAScrollShell()

    Declaration
    public void ConfigureRowsScrolling_Off_NeverBuildsAScrollShell()

    ConfigureRowsScrolling_On_BeforeAnyRows_ThenSetRows_BuildsAScrollShell()

    Declaration
    public void ConfigureRowsScrolling_On_BeforeAnyRows_ThenSetRows_BuildsAScrollShell()

    CreateProcedural_NoBackgroundTemplate_BackgroundChildKeepsTheFlatProceduralColor()

    Declaration
    public void CreateProcedural_NoBackgroundTemplate_BackgroundChildKeepsTheFlatProceduralColor()

    CreateProcedural_WithBackgroundTemplate_BackgroundChildIsAnInstanceOfTheTemplateNamedBackground()

    Declaration
    public void CreateProcedural_WithBackgroundTemplate_BackgroundChildIsAnInstanceOfTheTemplateNamedBackground()

    CreateProcedural_WithBackgroundTemplate_ConfigureBackgroundThemeWhiteTint_KeepsTheTemplatesAuthoredColorExactly()

    Declaration
    public void CreateProcedural_WithBackgroundTemplate_ConfigureBackgroundThemeWhiteTint_KeepsTheTemplatesAuthoredColorExactly()

    NeverCallingApplyElementPlacements_LeavesRootLayoutUntouched_AndNothingIgnoresLayout()

    Declaration
    public void NeverCallingApplyElementPlacements_LeavesRootLayoutUntouched_AndNothingIgnoresLayout()

    SetButtons_HiddenButton_IsInactive()

    Declaration
    public void SetButtons_HiddenButton_IsInactive()

    SetButtons_NullOrEmpty_LeavesTheRootLayoutUntouched()

    Declaration
    public void SetButtons_NullOrEmpty_LeavesTheRootLayoutUntouched()

    SetButtons_PlacesEachButtonAtItsAuthoredAnchorAndOffset()

    Declaration
    public void SetButtons_PlacesEachButtonAtItsAuthoredAnchorAndOffset()

    SetButtons_ThenSetRows_KeepsTheButtonPlaced()

    Declaration
    public void SetButtons_ThenSetRows_KeepsTheButtonPlaced()

    SetEmptyState_Hidden_HidesEmptyStateHolder()

    Declaration
    public void SetEmptyState_Hidden_HidesEmptyStateHolder()

    SetEmptyState_TranslateFalse_LeavesTheEmptyStateLabelWithoutTheUpdater()

    Declaration
    public void SetEmptyState_TranslateFalse_LeavesTheEmptyStateLabelWithoutTheUpdater()

    SetEmptyState_TranslateTrue_AddsTheLocalizationUpdaterToTheEmptyStateLabel()

    Declaration
    public void SetEmptyState_TranslateTrue_AddsTheLocalizationUpdaterToTheEmptyStateLabel()

    SetEmptyState_Visible_ShowsEmptyStateHolder()

    Declaration
    public void SetEmptyState_Visible_ShowsEmptyStateHolder()

    SetRows_AfterSetTextStyle_EveryProceduralCellLabelCarriesTheStyle()

    Declaration
    public void SetRows_AfterSetTextStyle_EveryProceduralCellLabelCarriesTheStyle()

    SetRows_CalledTwice_ReplacesPreviousRows()

    Declaration
    public void SetRows_CalledTwice_ReplacesPreviousRows()

    SetRows_ColumnAlignments_MapToExpectedTextAlignmentOptions()

    Declaration
    public void SetRows_ColumnAlignments_MapToExpectedTextAlignmentOptions()

    SetRows_ColumnLayoutWithHeader_HeaderRowIsFirstChildWithSameCellCountAsDataRows()

    Declaration
    public void SetRows_ColumnLayoutWithHeader_HeaderRowIsFirstChildWithSameCellCountAsDataRows()

    SetRows_ColumnWithFixedWidth_CellLayoutElementMatchesWidthAndIsNotFlexible()

    Declaration
    public void SetRows_ColumnWithFixedWidth_CellLayoutElementMatchesWidthAndIsNotFlexible()

    SetRows_ContentSizedNonNameColumn_StaysContentSizedRegardlessOfAlignment()

    Declaration
    public void SetRows_ContentSizedNonNameColumn_StaysContentSizedRegardlessOfAlignment()

    SetRows_DataRows_NeverGainTheLocalizationUpdater()

    Declaration
    public void SetRows_DataRows_NeverGainTheLocalizationUpdater()

    SetRows_HeaderColumnWithTranslateOff_HeaderCellHasNoLocalizationUpdater()

    Declaration
    public void SetRows_HeaderColumnWithTranslateOff_HeaderCellHasNoLocalizationUpdater()

    SetRows_HeaderColumnWithTranslateOn_HeaderCellGainsTheLocalizationUpdater()

    Declaration
    public void SetRows_HeaderColumnWithTranslateOn_HeaderCellGainsTheLocalizationUpdater()

    SetRows_HeaderOnWithNoDataRows_BuildsNoHeaderRow()

    Declaration
    public void SetRows_HeaderOnWithNoDataRows_BuildsNoHeaderRow()

    SetRows_LegacyLayout_RendersRankNameValueLeftAlignedWithOnlyTheNameColumnFlexible()

    Declaration
    public void SetRows_LegacyLayout_RendersRankNameValueLeftAlignedWithOnlyTheNameColumnFlexible()

    SetRows_ManyRowsWithVaryingRankWidths_EveryRowsRankCellSharesTheSamePreferredWidthAsTheHeader()

    Declaration
    public void SetRows_ManyRowsWithVaryingRankWidths_EveryRowsRankCellSharesTheSamePreferredWidthAsTheHeader()

    SetRows_ProceduralFallback_BuildsOneRowPerEntry()

    Declaration
    public void SetRows_ProceduralFallback_BuildsOneRowPerEntry()

    SetRows_RowsContainerHasPreExistingChildren_ClearsThemOnFirstAttach()

    Declaration
    public void SetRows_RowsContainerHasPreExistingChildren_ClearsThemOnFirstAttach()

    SetRows_ThemedLabelTemplate_KeepsTheTemplatesAuthoredAlignmentRegardlessOfColumn()

    Declaration
    public void SetRows_ThemedLabelTemplate_KeepsTheTemplatesAuthoredAlignmentRegardlessOfColumn()

    SetTextStyle_AfterApplyThemeTitleTemplate_LeavesTheTemplateLabelsFontUntouched()

    Declaration
    public void SetTextStyle_AfterApplyThemeTitleTemplate_LeavesTheTemplateLabelsFontUntouched()

    SetTextStyle_CalledAfterTitleAndEmptyStateAlreadyBuilt_AppliesStyleRetroactively()

    Declaration
    public void SetTextStyle_CalledAfterTitleAndEmptyStateAlreadyBuilt_AppliesStyleRetroactively()

    SetTextStyle_NonProceduralPanel_DoesNotOverwriteTheHeaderLabelsAuthoredFont()

    Declaration
    public void SetTextStyle_NonProceduralPanel_DoesNotOverwriteTheHeaderLabelsAuthoredFont()

    SetTextStyle_UnresolvedStyle_LeavesExistingFontUntouchedAndDoesNotThrow()

    Declaration
    public void SetTextStyle_UnresolvedStyle_LeavesExistingFontUntouchedAndDoesNotThrow()

    SetTitle_TranslateFalseOnAPreWiredLabel_TurnsThePreWiredUpdaterOff()

    Declaration
    public void SetTitle_TranslateFalseOnAPreWiredLabel_TurnsThePreWiredUpdaterOff()

    SetTitle_TranslateFalse_LeavesTheTitleLabelWithoutTheUpdater()

    Declaration
    public void SetTitle_TranslateFalse_LeavesTheTitleLabelWithoutTheUpdater()

    SetTitle_TranslateTrue_AddsTheLocalizationUpdaterToTheTitleLabel()

    Declaration
    public void SetTitle_TranslateTrue_AddsTheLocalizationUpdaterToTheTitleLabel()

    SetUp()

    Declaration
    public void SetUp()

    TearDown()

    Declaration
    public void TearDown()

    TryResolveElementRect_ChildNamedBackground_ReturnsTrueWithThatChildsRect()

    Declaration
    public void TryResolveElementRect_ChildNamedBackground_ReturnsTrueWithThatChildsRect()

    TryResolveElementRect_ProceduralFallback_Background_ResolvesTheBuiltInBackgroundChild()

    Declaration
    public void TryResolveElementRect_ProceduralFallback_Background_ResolvesTheBuiltInBackgroundChild()

    TryResolveElementRect_ResolvesEachSlotByDefault()

    Declaration
    public void TryResolveElementRect_ResolvesEachSlotByDefault()

    TryResolveElementRect_Rows_AlwaysResolvesTheTableRoot()

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