logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class SerenityExistingAssetRestoreTests

    EditMode tests for Serenity.Global.Infrastructure.Editor.SerenityExistingAssetRestore itself — what a capture puts back, and what it refuses to capture at all. The ordering Serenity.Global.Infrastructure.Editor.SerenityAssetCreationTransaction gives a registered restore is tested by SerenityAssetCreationTransactionTests, the fixture that owns Rollback. Every fixture asset lives under a private temp folder wiped in TearDown() with the safe-delete processor suppressed, the convention UnitySingletonSettingsLoaderTests established; nothing here registers an Addressables entry, so nothing has to be removed from the project's Addressables settings either.

    Inheritance
    object
    SerenityExistingAssetRestoreTests
    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 SerenityExistingAssetRestoreTests

    Constructors

    SerenityExistingAssetRestoreTests()

    Declaration
    public SerenityExistingAssetRestoreTests()

    Methods

    Capture_GameObject_Throws()

    Declaration
    public void Capture_GameObject_Throws()

    Capture_Null_Throws()

    Declaration
    public void Capture_Null_Throws()

    Capture_SubAsset_Throws()

    Declaration
    public void Capture_SubAsset_Throws()

    EverySerializedField_MutatedThenRestored_ReturnsToItsCapturedValue()

    Declaration
    public void EverySerializedField_MutatedThenRestored_ReturnsToItsCapturedValue()

    ObjectReferenceField_RestoresToOriginalReference()

    Declaration
    public void ObjectReferenceField_RestoresToOriginalReference()

    OneTimeSetUp()

    Declaration
    public void OneTimeSetUp()

    OneTimeTearDown()

    Declaration
    public void OneTimeTearDown()

    Restore_AfterTargetDestroyed_IsANoOp()

    Declaration
    public void Restore_AfterTargetDestroyed_IsANoOp()

    Restore_KeepsTheAssetNameTheRunGaveIt()

    Declaration
    public void Restore_KeepsTheAssetNameTheRunGaveIt()

    Restore_MarksTheDirtyTargetAsWellAsTheCapturedOne()

    Declaration
    public void Restore_MarksTheDirtyTargetAsWellAsTheCapturedOne()

    Restore_ReturnsEveryChangedSerializedField()

    Declaration
    public void Restore_ReturnsEveryChangedSerializedField()

    SerializeReferenceGraph_RestoresPolymorphicElements()

    Declaration
    public void SerializeReferenceGraph_RestoresPolymorphicElements()

    SetUp()

    Declaration
    public void SetUp()

    TearDown()

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