logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class AchievementSyncLocalSnapshotSourceTests

    EditMode tests for AchievementSyncLocalSnapshotSource. Every fixture is an in-memory UnityAchievementDefinition built via ScriptableObject.CreateInstance rather than a project asset: the source only reads the given definitions, so nothing here needs to reach the UnityEditor.AssetDatabase or the project's Addressables settings.

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

    Constructors

    AchievementSyncLocalSnapshotSourceTests()

    Declaration
    public AchievementSyncLocalSnapshotSourceTests()

    Methods

    BuildRecords_BlankMapping_ProducesARecordWithAnEmptyApiName()

    Declaration
    public void BuildRecords_BlankMapping_ProducesARecordWithAnEmptyApiName()

    BuildRecords_DifferentTargetPlatform_ReadsThatPlatformsIdentifier()

    Declaration
    public void BuildRecords_DifferentTargetPlatform_ReadsThatPlatformsIdentifier()

    BuildRecords_IncludeIconsFalse_NeverCallsTheEncoder()

    Declaration
    public void BuildRecords_IncludeIconsFalse_NeverCallsTheEncoder()

    BuildRecords_IncludeIconsWithAnEncoder_CallsItForEveryDefinition()

    Declaration
    public void BuildRecords_IncludeIconsWithAnEncoder_CallsItForEveryDefinition()

    BuildRecords_NonTranslatingAchievement_UsesLiteralTextUnderTheAuthoringLocale()

    Declaration
    public void BuildRecords_NonTranslatingAchievement_UsesLiteralTextUnderTheAuthoringLocale()

    BuildRecords_NullDefinitionsList_ReturnsEmpty()

    Declaration
    public void BuildRecords_NullDefinitionsList_ReturnsEmpty()

    BuildRecords_NullIconEncoder_ProducesNoneIcons()

    Declaration
    public void BuildRecords_NullIconEncoder_ProducesNoneIcons()

    BuildRecords_NullOptions_Throws()

    Declaration
    public void BuildRecords_NullOptions_Throws()

    BuildRecords_SaysWhetherTheAchievementAlreadyHoldsAnIcon_WithoutEncodingAnyIcon()

    Declaration
    public void BuildRecords_SaysWhetherTheAchievementAlreadyHoldsAnIcon_WithoutEncodingAnyIcon()

    BuildRecords_SkipsNullDefinitionsInTheList()

    Declaration
    public void BuildRecords_SkipsNullDefinitionsInTheList()

    BuildRecords_TranslatingAchievementWithNoMatchingLocale_LeavesTheTextSetEmpty()

    Declaration
    public void BuildRecords_TranslatingAchievementWithNoMatchingLocale_LeavesTheTextSetEmpty()

    BuildRecords_TranslatingAchievement_ReadsItsTextFromTheTablesAndIsNotLiteral()

    Declaration
    public void BuildRecords_TranslatingAchievement_ReadsItsTextFromTheTablesAndIsNotLiteral()

    BuildRecords_UsesTheApiNameFromThePlatformMapping()

    Declaration
    public void BuildRecords_UsesTheApiNameFromThePlatformMapping()

    TearDown()

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