logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class UnityCheckpointTriggerComponentTests

    PlayMode tests for UnityCheckpointTriggerComponent, driven by real trigger messages: an object walking into the volume records a checkpoint through ICheckpointService — once, or every time, as the author chose — only objects the layer and tag filter admit set it off, and a project without the Checkpoint module gets one warning naming the task to add instead of an exception. The visitor is the object carrying the body, so a rig tagged on its root with hitbox colliders on its children records once per visit, and "record only once" asks the saved checkpoints, so it survives a scene reload.

    Inheritance
    object
    UnityCheckpointTriggerComponentTests
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.UnityCheckpoint.Tests.Infrastructure
    Assembly: Tests.dll
    Syntax
    public class UnityCheckpointTriggerComponentTests

    Constructors

    UnityCheckpointTriggerComponentTests()

    Declaration
    public UnityCheckpointTriggerComponentTests()

    Methods

    Enter2D_ByACompoundVisitorTaggedOnItsRoot_RecordsOnce()

    Declaration
    public void Enter2D_ByACompoundVisitorTaggedOnItsRoot_RecordsOnce()

    Enter2D_WithTheCheckpointModuleInstalled_RecordsTheCheckpoint()

    Declaration
    public void Enter2D_WithTheCheckpointModuleInstalled_RecordsTheCheckpoint()

    EnterAgain_AfterTheSceneReloads_WithRecordOnlyOnceOff_RecordsAgain()

    Declaration
    public void EnterAgain_AfterTheSceneReloads_WithRecordOnlyOnceOff_RecordsAgain()

    EnterAgain_AfterTheSceneReloads_WithRecordOnlyOnce_DoesNotRecordTheSavedCheckpointAgain()

    Declaration
    public void EnterAgain_AfterTheSceneReloads_WithRecordOnlyOnce_DoesNotRecordTheSavedCheckpointAgain()

    EnterTwice_WithRecordOnlyOnceOff_RecordsEveryTime()

    Declaration
    public void EnterTwice_WithRecordOnlyOnceOff_RecordsEveryTime()

    EnterTwice_WithRecordOnlyOnce_RecordsOnce()

    Declaration
    public void EnterTwice_WithRecordOnlyOnce_RecordsOnce()

    Enter_BeforeTheModuleIsInstalled_DoesNotSpendTheOnlyRecording()

    Declaration
    public void Enter_BeforeTheModuleIsInstalled_DoesNotSpendTheOnlyRecording()

    Enter_ByACharacterControllerRigWithHitboxes_RecordsOncePerVisit()

    Declaration
    public void Enter_ByACharacterControllerRigWithHitboxes_RecordsOncePerVisit()

    Enter_ByACompoundVisitorTaggedOnItsRoot_RecordsOnce()

    Declaration
    public void Enter_ByACompoundVisitorTaggedOnItsRoot_RecordsOnce()

    Enter_ByACompoundVisitor_RecordsOncePerVisitNotOncePerCollider()

    Declaration
    public void Enter_ByACompoundVisitor_RecordsOncePerVisitNotOncePerCollider()

    Enter_ByAnObjectOnAnExcludedLayer_RecordsNothing_AndIncludingTheLayerRecords()

    Declaration
    public void Enter_ByAnObjectOnAnExcludedLayer_RecordsNothing_AndIncludingTheLayerRecords()

    Enter_ByAnObjectWithoutTheRequiredTag_RecordsNothing_AndTheTaggedObjectRecords()

    Declaration
    public void Enter_ByAnObjectWithoutTheRequiredTag_RecordsNothing_AndTheTaggedObjectRecords()

    Enter_ByTheHitboxOfACharacterControllerRigTaggedOnItsRoot_Records()

    Declaration
    public void Enter_ByTheHitboxOfACharacterControllerRigTaggedOnItsRoot_Records()

    Enter_RecordsTheRespawnPointPose()

    Declaration
    public void Enter_RecordsTheRespawnPointPose()

    Enter_WithNoCheckpointName_RecordsUnderTheObjectName()

    Declaration
    public void Enter_WithNoCheckpointName_RecordsUnderTheObjectName()

    Enter_WithTheCheckpointModuleInstalled_RecordsTheCheckpointUnderItsName()

    Declaration
    public void Enter_WithTheCheckpointModuleInstalled_RecordsTheCheckpointUnderItsName()

    Enter_WithTheCheckpointModuleMissing_WarnsOnceNamingTheTaskAndDoesNotThrow()

    Declaration
    public void Enter_WithTheCheckpointModuleMissing_WarnsOnceNamingTheTaskAndDoesNotThrow()

    EveryVisitMode_AfterAVisitorIsDestroyedInside_StillRecordsEveryLaterVisit()

    Declaration
    public IEnumerator EveryVisitMode_AfterAVisitorIsDestroyedInside_StillRecordsEveryLaterVisit()
    Returns
    Type Description
    IEnumerator

    SetUp()

    Declaration
    public void SetUp()

    TearDown()

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