logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class UnityLocalizationStringTableEditorUtilsTests

    EditMode round-trip tests for Serenity.Global.Infrastructure.Editor.UnityLocalizationStringTableEditorUtils (Serenity.Global.Infrastructure.Editor.UnityLocalizationStringTableEditorUtils.GetStringTableCollectionNames, Serenity.Global.Infrastructure.Editor.UnityLocalizationStringTableEditorUtils.GetLocaleCodesOf(System.String), Serenity.Global.Infrastructure.Editor.UnityLocalizationStringTableEditorUtils.TryGetStringTableEntry(System.String,System.String,System.String,System.String@) and Serenity.Global.Infrastructure.Editor.UnityLocalizationStringTableEditorUtils.TrySetStringTableEntry(System.String,System.String,System.String,System.String)), against a real, ephemeral Unity Localization string table collection. Mirrors SerenityLocalizationKeyValidatorPerLocaleTests's fixture-only locale-code discipline ("zpk" codes, never "en"/"es") so this stays hermetic regardless of what the project already ships.

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

    Constructors

    UnityLocalizationStringTableEditorUtilsTests()

    Declaration
    public UnityLocalizationStringTableEditorUtilsTests()

    Methods

    HasSharedKey_AKeyTheSharedDataHoldsWithNoEntryUnderIt_IsTrue()

    Declaration
    public void HasSharedKey_AKeyTheSharedDataHoldsWithNoEntryUnderIt_IsTrue()

    OneTimeTearDown()

    Every per-test cleanup above goes through AssetDatabase.DeleteAsset/RemoveLocale, which update the asset database immediately — a manual refresh between tests is unnecessary; flushing to disk once after the whole fixture is enough.

    Declaration
    public void OneTimeTearDown()

    RoundTrip_CollectionNamesLocalesAndEntry_ReadBackThroughReflection()

    Declaration
    public void RoundTrip_CollectionNamesLocalesAndEntry_ReadBackThroughReflection()

    SetUp()

    Declaration
    public void SetUp()

    TearDown()

    Declaration
    public void TearDown()

    TryGetStringTableEntry_MissingKey_ReturnsFalse()

    Declaration
    public void TryGetStringTableEntry_MissingKey_ReturnsFalse()

    TryGetStringTableEntry_UnknownCollection_ReturnsFalse()

    Declaration
    public void TryGetStringTableEntry_UnknownCollection_ReturnsFalse()

    TryRemoveStringTableEntry_AnEntryJustWritten_LeavesNeitherTheEntryNorItsKey()

    Declaration
    public void TryRemoveStringTableEntry_AnEntryJustWritten_LeavesNeitherTheEntryNorItsKey()

    TryRemoveStringTableEntry_AskedToKeepTheSharedKey_LeavesTheKeyInTheSharedData()

    Declaration
    public void TryRemoveStringTableEntry_AskedToKeepTheSharedKey_LeavesTheKeyInTheSharedData()

    TryRemoveStringTableEntry_UnknownCollectionOrEntry_ReturnsFalse()

    Declaration
    public void TryRemoveStringTableEntry_UnknownCollectionOrEntry_ReturnsFalse()

    TrySetStringTableEntry_ANewEntryWithBraces_IsPlainTextNotSmartFormat()

    Declaration
    public void TrySetStringTableEntry_ANewEntryWithBraces_IsPlainTextNotSmartFormat()

    TrySetStringTableEntry_AnEntryTheAuthorMadeSmart_StaysSmartWhenItsTextIsReplaced()

    Declaration
    public void TrySetStringTableEntry_AnEntryTheAuthorMadeSmart_StaysSmartWhenItsTextIsReplaced()

    TrySetStringTableEntry_KeyAlreadyExists_OverwritesTheValue()

    Declaration
    public void TrySetStringTableEntry_KeyAlreadyExists_OverwritesTheValue()

    TrySetStringTableEntry_KeyDoesNotExistYet_CreatesTheKeyAndWritesTheValue()

    Declaration
    public void TrySetStringTableEntry_KeyDoesNotExistYet_CreatesTheKeyAndWritesTheValue()

    TrySetStringTableEntry_ShippedTableWithAuthorApproval_Writes()

    Declaration
    public void TrySetStringTableEntry_ShippedTableWithAuthorApproval_Writes()

    TrySetStringTableEntry_TableShippedInsideThePackage_RefusesAndLeavesTheEntryUntouched()

    Declaration
    public void TrySetStringTableEntry_TableShippedInsideThePackage_RefusesAndLeavesTheEntryUntouched()

    TrySetStringTableEntry_UnknownCollection_ReturnsFalse()

    Declaration
    public void TrySetStringTableEntry_UnknownCollection_ReturnsFalse()

    TrySetStringTableEntry_UnknownLocale_ReturnsFalse()

    Declaration
    public void TrySetStringTableEntry_UnknownLocale_ReturnsFalse()

    WriteRefusalFor_TableOwnedByTheProject_IsNull()

    Declaration
    public void WriteRefusalFor_TableOwnedByTheProject_IsNull()

    WriteRefusalFor_TableShippedInsideThePackage_NamesTheTable()

    Declaration
    public void WriteRefusalFor_TableShippedInsideThePackage_NamesTheTable()

    WriteRefusalFor_UnknownCollection_IsNull()

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