Class CheckpointsSectionTests
CheckpointsSection-specific tests: payload get/set/remove, serialize/deserialize round-trips, and null-payload reset behavior.
Inherited Members
Namespace: Serenity.GameSave.Tests.Domain
Assembly: Tests.dll
Syntax
public class CheckpointsSectionTests
Constructors
CheckpointsSectionTests()
Declaration
public CheckpointsSectionTests()
Methods
Deserialize_NullOrEmptyPayload_ResetsToEmpty()
Declaration
public void Deserialize_NullOrEmptyPayload_ResetsToEmpty()
RemovePayload_ExistingCheckpointKey_RemovesItAndReturnsTrue()
Declaration
public void RemovePayload_ExistingCheckpointKey_RemovesItAndReturnsTrue()
RemovePayload_UnknownCheckpointKey_ReturnsFalse()
Declaration
public void RemovePayload_UnknownCheckpointKey_ReturnsFalse()
SectionKey_IsTheReservedCheckpointsKey()
Declaration
public void SectionKey_IsTheReservedCheckpointsKey()
Serialize_NoCheckpoints_ProducesAnEmptyJsonObject()
Declaration
public void Serialize_NoCheckpoints_ProducesAnEmptyJsonObject()
Serialize_ThenDeserialize_RoundTripsEveryCheckpoint()
Declaration
public void Serialize_ThenDeserialize_RoundTripsEveryCheckpoint()
SetPayload_ExistingCheckpointKey_ReplacesThePayloadWithoutDuplicatingTheKey()
Declaration
public void SetPayload_ExistingCheckpointKey_ReplacesThePayloadWithoutDuplicatingTheKey()
SetPayload_NewCheckpointKey_IsHeldAndReportedAsPresent()
Declaration
public void SetPayload_NewCheckpointKey_IsHeldAndReportedAsPresent()
SetPayload_NullOrEmptyCheckpointKey_ThrowsArgumentException()
Declaration
public void SetPayload_NullOrEmptyCheckpointKey_ThrowsArgumentException()
TryGetPayload_UnknownCheckpointKey_ReturnsFalse()
Declaration
public void TryGetPayload_UnknownCheckpointKey_ReturnsFalse()