logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class FileBackedKeyValueStructuredStoreContractTests

    Runs the full shared StructuredStoreContractTests suite against KeyValueStructuredStore backed by FileKeyValueStore over an in-memory blob fake — proves ordering, filtering, pagination, and upsert-if-better all work correctly over a file-shaped backend, not just over the plain in-memory key-value fake.

    Inheritance
    object
    StructuredStoreContractTests
    FileBackedKeyValueStructuredStoreContractTests
    Inherited Members
    StructuredStoreContractTests.Table
    StructuredStoreContractTests.PartitionField
    StructuredStoreContractTests.PlayerField
    StructuredStoreContractTests.ScoreField
    StructuredStoreContractTests.TicksField
    StructuredStoreContractTests.NoCancellation
    StructuredStoreContractTests.SetUpStoreAsync()
    StructuredStoreContractTests.Record(string, double, long)
    StructuredStoreContractTests.RecordWithNullScore(string, long)
    StructuredStoreContractTests.GroupScope()
    StructuredStoreContractTests.KeyFields()
    StructuredStoreContractTests.DistinctByPlayer()
    StructuredStoreContractTests.Ordering(StructuredSortDirection)
    StructuredStoreContractTests.InsertAsync_MultipleRecords_QueryOrdersByDescendingScore()
    StructuredStoreContractTests.QueryAsync_TiedScores_BreakTiesByTicksThenPlayerOrdinal()
    StructuredStoreContractTests.UpsertIfBetterAsync_Descending_BetterValueReplacesExisting()
    StructuredStoreContractTests.UpsertIfBetterAsync_Descending_WorseValueDoesNotReplaceExisting()
    StructuredStoreContractTests.UpsertIfBetterAsync_EqualValue_DoesNotReplaceExisting()
    StructuredStoreContractTests.UpsertIfBetterAsync_Ascending_LowerValueReplacesExisting()
    StructuredStoreContractTests.UpsertIfBetterAsync_NoExistingRecord_Inserts()
    StructuredStoreContractTests.QueryAsync_DistinctBy_CollapsesToFirstRecordPerGroupUnderOrdering()
    StructuredStoreContractTests.QueryAsync_OffsetAndLimit_Paginate()
    StructuredStoreContractTests.QueryAsync_NoFilterMatch_ReturnsEmpty()
    StructuredStoreContractTests.CountAsync_DistinctBy_CollapsesToDistinctGroups()
    StructuredStoreContractTests.CountAsync_WithComparisonFilter_CountsOnlyStrictlyBetterRecords()
    StructuredStoreContractTests.DeleteByQueryAsync_RemovesOnlyMatchingRecords()
    StructuredStoreContractTests.TrimBeyondAsync_KeepsOnlyTheBestWithinScope()
    StructuredStoreContractTests.InsertAsync_FoldedTrim_BoundsStoredCountImmediately()
    StructuredStoreContractTests.QueryAsync_EqualNullFilter_MatchesOnlyNullValuedRecords()
    StructuredStoreContractTests.QueryAsync_GreaterThanNullFilter_MatchesOnlyNonNullRecords()
    StructuredStoreContractTests.QueryAsync_LessThanNullFilter_MatchesNothing()
    StructuredStoreContractTests.QueryAsync_LessThanConcreteValueFilter_IncludesNullValuedRecords()
    StructuredStoreContractTests.UpsertIfBetterAsync_ExistingNullComparisonValue_AscendingCandidateLoses()
    StructuredStoreContractTests.UpsertIfBetterAsync_ExistingNullComparisonValue_DescendingCandidateWins()
    StructuredStoreContractTests.QueryWindowAroundAsync_TargetInMiddle_ReturnsCenteredWindow()
    StructuredStoreContractTests.QueryWindowAroundAsync_TargetNearTop_ClampsWindowStart()
    StructuredStoreContractTests.QueryWindowAroundAsync_TargetAbsent_ReturnsEmpty()
    StructuredStoreContractTests.QueryWindowAroundAsync_RadiusLargerThanScope_ReturnsFullScope()
    StructuredStoreContractTests.HealthCheckAsync_ReturnsTrue()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.FilePersistence.Tests.Infrastructure
    Assembly: Tests.dll
    Syntax
    public class FileBackedKeyValueStructuredStoreContractTests : StructuredStoreContractTests

    Constructors

    FileBackedKeyValueStructuredStoreContractTests()

    Declaration
    public FileBackedKeyValueStructuredStoreContractTests()

    Methods

    CreateStoreAsync()

    Creates a fresh, empty IStructuredStore instance.

    Declaration
    protected override Task<IStructuredStore> CreateStoreAsync()
    Returns
    Type Description
    Task<IStructuredStore>
    Overrides
    StructuredStoreContractTests.CreateStoreAsync()
    In this article
    © 2026 Serenity. All Rights Reserved