logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class LocalizedTextSetTests

    Tests for LocalizedTextSet: deterministic enumeration, value equality, lookups, and locale-code validation.

    Inheritance
    object
    LocalizedTextSetTests
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.Achievements.Tests.Sync
    Assembly: Tests.dll
    Syntax
    public class LocalizedTextSetTests

    Constructors

    LocalizedTextSetTests()

    Declaration
    public LocalizedTextSetTests()

    Methods

    Empty_HasNoLocalesAndZeroCount()

    Declaration
    public void Empty_HasNoLocalesAndZeroCount()

    Equals_SetsWithDifferentText_AreNotEqual()

    Declaration
    public void Equals_SetsWithDifferentText_AreNotEqual()

    Equals_TwoSetsWithSameEntriesInDifferentOrder_AreEqual()

    Declaration
    public void Equals_TwoSetsWithSameEntriesInDifferentOrder_AreEqual()

    FromDictionary_MapWithWhitespaceKey_ThrowsArgumentException()

    Declaration
    public void FromDictionary_MapWithWhitespaceKey_ThrowsArgumentException()

    FromDictionary_NullMap_ThrowsArgumentNullException()

    Declaration
    public void FromDictionary_NullMap_ThrowsArgumentNullException()

    LocaleCodes_MultipleLocalesAddedOutOfOrder_EnumeratesOrdinalSorted()

    Declaration
    public void LocaleCodes_MultipleLocalesAddedOutOfOrder_EnumeratesOrdinalSorted()

    TryGet_LocaleIsMissing_ReturnsFalseAndEmptyText()

    Declaration
    public void TryGet_LocaleIsMissing_ReturnsFalseAndEmptyText()

    TryGet_LocaleIsPresent_ReturnsTrueAndText()

    Declaration
    public void TryGet_LocaleIsPresent_ReturnsTrueAndText()

    With_NullLocaleCode_ThrowsArgumentException()

    Declaration
    public void With_NullLocaleCode_ThrowsArgumentException()

    With_ReplacingAnExistingLocale_LeavesTheOriginalSetUnchanged()

    Declaration
    public void With_ReplacingAnExistingLocale_LeavesTheOriginalSetUnchanged()

    With_WhitespaceLocaleCode_ThrowsArgumentException()

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