logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class ScoreSettingsCreatorTests

    EditMode tests for ScoreSettingsCreator. Every test targets a fixture asset under a private temp folder — the real project-wide singleton (used by the production wizard) is never touched, so these tests stay hermetic regardless of what the project already has configured. Mirrors Serenity.GameSave.Tests.Editor.Builder.GameSaveCreatorTests.

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

    Constructors

    ScoreSettingsCreatorTests()

    Declaration
    public ScoreSettingsCreatorTests()

    Methods

    Create_CollisionAtTargetPath_ReturnsErrorAndCreatesNothing()

    Declaration
    public void Create_CollisionAtTargetPath_ReturnsErrorAndCreatesNothing()

    Create_ExistingSettingsAssetPath_EditsInsteadOfDuplicatingTheAsset()

    Declaration
    public void Create_ExistingSettingsAssetPath_EditsInsteadOfDuplicatingTheAsset()

    Create_FolderRemovedFromDiskBetweenCacheAndWrite_RollsBackWithNoOrphanFilesOrEntries()

    Forces a genuine failure the same way SettingsAssetAuthoring.VerifyAssetWasWrittenToDisk's own doc comment describes: a folder Unity's AssetDatabase cache still reports as valid, but that has actually been removed from disk directly. EnsureProjectFolderExists then skips recreating it (cache says it is already there), AssetDatabase.CreateAsset silently no-ops, and VerifyAssetWasWrittenToDisk throws — driving the real try/catch → transaction.Rollback() path rather than reflection into a private method.

    Declaration
    public void Create_FolderRemovedFromDiskBetweenCacheAndWrite_RollsBackWithNoOrphanFilesOrEntries()

    Create_NoExistingAsset_CreatesOneAtTheGivenFolderAndName()

    Declaration
    public void Create_NoExistingAsset_CreatesOneAtTheGivenFolderAndName()

    Create_RegisterAsAddressablesFalse_LeavesAddressablesUntouched()

    Declaration
    public void Create_RegisterAsAddressablesFalse_LeavesAddressablesUntouched()

    Create_RegisterAsAddressablesTrue_RegistersModuleScoreLabel()

    Declaration
    public void Create_RegisterAsAddressablesTrue_RegistersModuleScoreLabel()

    SetUp()

    Declaration
    public void SetUp()

    TearDown()

    Declaration
    public void TearDown()

    ValidateIdentity_EmptyAssetNameWhileCreating_ReturnsError()

    Declaration
    public void ValidateIdentity_EmptyAssetNameWhileCreating_ReturnsError()

    ValidateIdentity_EmptyAssetNameWhileEditingExisting_IsValid()

    Declaration
    public void ValidateIdentity_EmptyAssetNameWhileEditingExisting_IsValid()

    ValidateIdentity_EmptyId_ReturnsError()

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