logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class SerenityAssetCreationTransactionTests

    EditMode tests for Serenity.Global.Infrastructure.Editor.SerenityAssetCreationTransaction. Follows the temp-folder hygiene convention of UnityEditorUtilsTests: every fixture asset lives under a private temp folder that is wiped in TearDown(), and any Addressables entry a test registers is removed explicitly (in a finally or in TearDown()) per the project rule that tests must not pollute the real Addressables settings.

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

    Constructors

    SerenityAssetCreationTransactionTests()

    Declaration
    public SerenityAssetCreationTransactionTests()

    Methods

    Commit_EveryPathTrackedWithoutOwnLabels_AllShareTheRunWideLabel()

    Declaration
    public void Commit_EveryPathTrackedWithoutOwnLabels_AllShareTheRunWideLabel()

    Commit_NoCreatedAssets_RegisterTrueIsANoOp()

    Declaration
    public void Commit_NoCreatedAssets_RegisterTrueIsANoOp()

    Commit_PathTrackedWithItsOwnLabels_GetsThoseInsteadOfTheRunWideOnes()

    Declaration
    public void Commit_PathTrackedWithItsOwnLabels_GetsThoseInsteadOfTheRunWideOnes()

    Commit_RegisterFalse_PersistsAssetWithoutRegisteringAddressables()

    Declaration
    public void Commit_RegisterFalse_PersistsAssetWithoutRegisteringAddressables()

    Commit_RegisterTrue_RegistersEveryCreatedPathWithExtraLabels()

    Declaration
    public void Commit_RegisterTrue_RegistersEveryCreatedPathWithExtraLabels()

    Dispose_AfterCommit_LeavesTheCommittedAssetInPlace()

    Declaration
    public void Dispose_AfterCommit_LeavesTheCommittedAssetInPlace()

    Dispose_AfterExplicitRollback_DoesNotThrowOrDoubleDelete()

    Declaration
    public void Dispose_AfterExplicitRollback_DoesNotThrowOrDoubleDelete()

    Dispose_CommitNeverCalled_RollsBack()

    Declaration
    public void Dispose_CommitNeverCalled_RollsBack()

    FolderTracking_PassedToEnsureFolder_TracksNewlyCreatedSegments()

    Declaration
    public void FolderTracking_PassedToEnsureFolder_TracksNewlyCreatedSegments()

    LastCreatedPath_AfterTrackingSeveralAssets_ReturnsTheMostRecentOne()

    Declaration
    public void LastCreatedPath_AfterTrackingSeveralAssets_ReturnsTheMostRecentOne()

    LastCreatedPath_NothingTrackedYet_IsNullRatherThanThrowing()

    Declaration
    public void LastCreatedPath_NothingTrackedYet_IsNullRatherThanThrowing()

    Rollback_CalledTwice_SecondCallIsANoOp()

    Declaration
    public void Rollback_CalledTwice_SecondCallIsANoOp()

    Rollback_DeletesEveryTrackedCreatedAsset()

    Declaration
    public void Rollback_DeletesEveryTrackedCreatedAsset()

    Rollback_DeletesTrackedFoldersBottomUp()

    Declaration
    public void Rollback_DeletesTrackedFoldersBottomUp()

    Rollback_NothingTracked_IsANoOp()

    Declaration
    public void Rollback_NothingTracked_IsANoOp()

    Rollback_RemovesAddressablesEntriesRegisteredForTrackedPaths()

    Declaration
    public void Rollback_RemovesAddressablesEntriesRegisteredForTrackedPaths()

    SetUp()

    Declaration
    public void SetUp()

    TearDown()

    Declaration
    public void TearDown()

    TrackCreatedAsset_AppendsToCreatedPathsInOrder()

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