logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class SettingsAssetRelocationTests

    EditMode tests for SettingsAssetRelocation — the shared move-out-of-package engine every by-type settings creator adopting SerenityWizardTargetAsset.MoveOutOfPackage shares. Built on real assets on disk, mirroring the fixture discipline of Serenity.UnityGlobal.Tests.Editor.SerenityPackageContentRelocatorTests: the package-content fixture lives under a throwaway folder nested inside Serenity.Global.Infrastructure.Editor.SerenityEditorPaths.AssetsRoot, wiped in both SetUp() and TearDown() via Serenity.Global.Infrastructure.Editor.Validation.References.SerenitySafeDeleteScope.

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

    Constructors

    SettingsAssetRelocationTests()

    Declaration
    public SettingsAssetRelocationTests()

    Methods

    MoveIfRequested_MoveFromPathEmpty_ReturnsNoneAndMovesNothing()

    Declaration
    public void MoveIfRequested_MoveFromPathEmpty_ReturnsNoneAndMovesNothing()

    MoveIfRequested_MoveRequested_MovesTheAssetAndReturnsAPendingMove()

    Declaration
    public void MoveIfRequested_MoveRequested_MovesTheAssetAndReturnsAPendingMove()

    MoveIntoPlannedFolder_PlannedPathNamesADifferentFileName_ThrowsButStillTracksTheMoveForRollback()

    Serenity.Global.Infrastructure.Editor.SerenityPackageContentRelocator.MoveIntoFolder(System.String,System.String,Serenity.Global.Infrastructure.Editor.SerenityAssetCreationTransaction) keeps the SOURCE file name unconditionally, so a planned path naming a DIFFERENT file name than the fixture's own can never be satisfied — this must throw rather than silently resolving against the wrong path. The move itself still happened and is still tracked for rollback: only the caller's planned path was wrong, not the relocation.

    Declaration
    public void MoveIntoPlannedFolder_PlannedPathNamesADifferentFileName_ThrowsButStillTracksTheMoveForRollback()

    MoveIntoPlannedFolder_ValidMove_MovesTheAssetAndKeepsItsGuid()

    Declaration
    public void MoveIntoPlannedFolder_ValidMove_MovesTheAssetAndKeepsItsGuid()

    OneTimeSetUp()

    Declaration
    public void OneTimeSetUp()

    OneTimeTearDown()

    Declaration
    public void OneTimeTearDown()

    PendingMove_DefaultValue_BehavesLikeNone()

    Declaration
    public void PendingMove_DefaultValue_BehavesLikeNone()

    PendingMove_FromMoveIfRequested_RecordOntoSetsBothPaths()

    Declaration
    public void PendingMove_FromMoveIfRequested_RecordOntoSetsBothPaths()

    PendingMove_None_RecordOntoIsANoOp()

    Declaration
    public void PendingMove_None_RecordOntoIsANoOp()

    SetUp()

    Declaration
    public void SetUp()

    TearDown()

    Declaration
    public void TearDown()

    Validate_DestinationAlreadyOccupied_AddsError()

    Declaration
    public void Validate_DestinationAlreadyOccupied_AddsError()

    Validate_MoveFromPackagePathEmpty_AddsNoErrors()

    Declaration
    public void Validate_MoveFromPackagePathEmpty_AddsNoErrors()

    Validate_NotPackageContent_AddsError()

    Declaration
    public void Validate_NotPackageContent_AddsError()

    Validate_PlannedPathEmpty_AddsError()

    Declaration
    public void Validate_PlannedPathEmpty_AddsError()

    Validate_SourceDoesNotExist_AddsError()

    Declaration
    public void Validate_SourceDoesNotExist_AddsError()

    Validate_ValidMove_AddsNoErrors()

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