logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class StructuredStoreGameSaveAdapterTests

    StructuredStoreGameSaveAdapter-specific tests: load/save round-trip per slot over the shared InMemoryStructuredStore fake, the "no row yet" default, the cross-slot summary query, delete/exists, the upsert-if-newer save semantics, malformed-payload handling, and exception re-wrapping/propagation.

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

    Constructors

    StructuredStoreGameSaveAdapterTests()

    Declaration
    public StructuredStoreGameSaveAdapterTests()

    Methods

    DeleteAsync_RemovesOnlyTheTargetedSlot()

    Declaration
    public Task DeleteAsync_RemovesOnlyTheTargetedSlot()
    Returns
    Type Description
    Task

    ExistsAsync_EmptySlot_ReturnsFalse()

    Declaration
    public Task ExistsAsync_EmptySlot_ReturnsFalse()
    Returns
    Type Description
    Task

    ExistsAsync_OccupiedSlot_ReturnsTrue()

    Declaration
    public Task ExistsAsync_OccupiedSlot_ReturnsTrue()
    Returns
    Type Description
    Task

    GetSlotSummaryAsync_EmptySlot_ReturnsNull()

    Declaration
    public Task GetSlotSummaryAsync_EmptySlot_ReturnsNull()
    Returns
    Type Description
    Task

    GetSlotSummaryAsync_OccupiedSlot_ReturnsMetadataOnlySummary()

    Declaration
    public Task GetSlotSummaryAsync_OccupiedSlot_ReturnsMetadataOnlySummary()
    Returns
    Type Description
    Task

    HealthCheckAsync_PassesThroughToUnderlyingStore()

    Declaration
    public Task HealthCheckAsync_PassesThroughToUnderlyingStore()
    Returns
    Type Description
    Task

    LoadAsync_MalformedPayloadJson_ThrowsGameSaveStoreExceptionNotJsonParseException()

    Declaration
    public Task LoadAsync_MalformedPayloadJson_ThrowsGameSaveStoreExceptionNotJsonParseException()
    Returns
    Type Description
    Task

    LoadAsync_NothingSavedYet_ReturnsNull()

    Declaration
    public Task LoadAsync_NothingSavedYet_ReturnsNull()
    Returns
    Type Description
    Task

    LoadAsync_UnderlyingCancellation_PropagatesUnwrapped()

    Declaration
    public Task LoadAsync_UnderlyingCancellation_PropagatesUnwrapped()
    Returns
    Type Description
    Task

    QuerySummariesAsync_ReturnsOnlyOccupiedSlots()

    Declaration
    public Task QuerySummariesAsync_ReturnsOnlyOccupiedSlots()
    Returns
    Type Description
    Task

    SaveAsync_CalledTwiceForTheSameSlot_ReplacesTheRowRatherThanAppending()

    Declaration
    public Task SaveAsync_CalledTwiceForTheSameSlot_ReplacesTheRowRatherThanAppending()
    Returns
    Type Description
    Task

    SaveAsync_DifferentSlots_AreIndependentRows()

    Declaration
    public Task SaveAsync_DifferentSlots_AreIndependentRows()
    Returns
    Type Description
    Task

    SaveAsync_ThenLoadAsync_RoundTrips()

    Declaration
    public Task SaveAsync_ThenLoadAsync_RoundTrips()
    Returns
    Type Description
    Task

    SaveAsync_UnderlyingStoreFailure_RewrapsAsGameSaveStoreExceptionOnce()

    Declaration
    public Task SaveAsync_UnderlyingStoreFailure_RewrapsAsGameSaveStoreExceptionOnce()
    Returns
    Type Description
    Task

    SaveAsync_WithTicksNotNewerThanStored_KeepsExistingRowUnchanged()

    Declaration
    public Task SaveAsync_WithTicksNotNewerThanStored_KeepsExistingRowUnchanged()
    Returns
    Type Description
    Task
    In this article
    © 2026 Serenity. All Rights Reserved