Class LocalizedTextSetTests
Tests for LocalizedTextSet: deterministic enumeration, value equality, lookups, and locale-code validation.
Inherited Members
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()