logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class UnityLocalizationLocaleCreationTests

    EditMode round-trip tests for the two reflection bridges that add a language to the project — Serenity.Global.Infrastructure.Editor.UnityLocalizationLocaleEditorUtils.TryEnsureLocale(System.String,System.String) and Serenity.Global.Infrastructure.Editor.UnityLocalizationStringTableEditorUtils.TryAddLocaleTable(System.String,System.String) — against a real, ephemeral Unity Localization collection. Fixture locale codes are "zpk"-prefixed, never "en"/"es", so the run stays hermetic regardless of what the project already ships.

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

    Constructors

    UnityLocalizationLocaleCreationTests()

    Declaration
    public UnityLocalizationLocaleCreationTests()

    Methods

    OneTimeTearDown()

    Declaration
    public void OneTimeTearDown()

    SetUp()

    Declaration
    public void SetUp()

    TableAdditionRefusalFor_ACollectionThatAlreadyHasTheTable_IsNull()

    Declaration
    public void TableAdditionRefusalFor_ACollectionThatAlreadyHasTheTable_IsNull()

    TableAdditionRefusalFor_ACollectionThatCanTakeTheTable_IsNull()

    Declaration
    public void TableAdditionRefusalFor_ACollectionThatCanTakeTheTable_IsNull()

    TableAdditionRefusalFor_ACollectionThePackageShips_SaysSoAndAddsNothing()

    Declaration
    public void TableAdditionRefusalFor_ACollectionThePackageShips_SaysSoAndAddsNothing()

    TableAdditionRefusalFor_UnknownCollection_NamesIt()

    Declaration
    public void TableAdditionRefusalFor_UnknownCollection_NamesIt()

    TearDown()

    Declaration
    public void TearDown()

    TryAddLocaleTable_ACollectionThePackageShips_IsRefusedAndAddsNothing()

    Declaration
    public void TryAddLocaleTable_ACollectionThePackageShips_IsRefusedAndAddsNothing()

    TryAddLocaleTable_ALocaleTheProjectDoesNotHave_Fails()

    Declaration
    public void TryAddLocaleTable_ALocaleTheProjectDoesNotHave_Fails()

    TryAddLocaleTable_ForALocaleTheProjectHas_AddsATableBesideTheCollectionThatTakesEntries()

    Declaration
    public void TryAddLocaleTable_ForALocaleTheProjectHas_AddsATableBesideTheCollectionThatTakesEntries()

    TryAddLocaleTable_UnknownCollection_Fails()

    Declaration
    public void TryAddLocaleTable_UnknownCollection_Fails()

    TryAddLocaleTable_WhenTheCollectionAlreadyHasTheTable_LeavesItAlone()

    Declaration
    public void TryAddLocaleTable_WhenTheCollectionAlreadyHasTheTable_LeavesItAlone()

    TryEnsureLocale_ACodeThatCannotNameAnAsset_Fails(string)

    Declaration
    public void TryEnsureLocale_ACodeThatCannotNameAnAsset_Fails(string code)
    Parameters
    Type Name Description
    string code

    TryEnsureLocale_AFolderInsideThePackage_IsRefused()

    Declaration
    public void TryEnsureLocale_AFolderInsideThePackage_IsRefused()

    TryEnsureLocale_ALocaleTheProjectAlreadyHas_IsReusedNotRecreated()

    Declaration
    public void TryEnsureLocale_ALocaleTheProjectAlreadyHas_IsReusedNotRecreated()

    TryEnsureLocale_ANewLocale_CreatesTheAssetInTheGivenFolderAndRegistersIt()

    Declaration
    public void TryEnsureLocale_ANewLocale_CreatesTheAssetInTheGivenFolderAndRegistersIt()

    TryEnsureLocale_AnUnregisteredAssetAlreadyAtTheLocalePath_IsNeverOverwritten()

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