Namespace Serenity.UnityCheckpoint.Tests.Infrastructure
Classes
UnityCheckpointRespawnPoseTests
Tests for TryRead(byte[], out UnityCheckpointRespawnPose): the data a checkpoint trigger saved reads back as its pose, and anything else a checkpoint can carry — text that is not JSON, bytes that are not text, a JSON array or bare value, JSON of another shape or a pose missing half of itself — answers false instead of a pose at the origin.
UnityCheckpointServiceTests
PlayMode tests for UnityCheckpointService.
MonoBehaviour driven via AddComponent; delegation to the injected
ICheckpointStore is verified with a spy store.
UnityCheckpointStoreTests
PlayMode tests for UnityCheckpointStore. Uses an in-memory IKeyValueStore fake to verify the JSON serialization round-trip and key-value delegation.
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.