logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class BlobAchievementScreenshotStoreTests

    Pins what the blob-backed screenshot store guarantees the unlock path: a key that reads back the exact bytes, a reset that clears one player without touching another, no orphaned PNG a reset cannot find, and a store failure that costs the screenshot rather than the unlock.

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

    Constructors

    BlobAchievementScreenshotStoreTests()

    Declaration
    public BlobAchievementScreenshotStoreTests()

    Methods

    DeleteAllAsync_IndexNamingAnotherPlayersKey_DoesNotFollowIt()

    Declaration
    public Task DeleteAllAsync_IndexNamingAnotherPlayersKey_DoesNotFollowIt()
    Returns
    Type Description
    Task

    DeleteAllAsync_LeavesAnotherPlayersScreenshotsAlone()

    Declaration
    public Task DeleteAllAsync_LeavesAnotherPlayersScreenshotsAlone()
    Returns
    Type Description
    Task

    DeleteAllAsync_OneDeleteThrows_StillClearsEverythingElse()

    Declaration
    public Task DeleteAllAsync_OneDeleteThrows_StillClearsEverythingElse()
    Returns
    Type Description
    Task

    DeleteAllAsync_RemovesEveryScreenshotAndTheIndexItself()

    Declaration
    public Task DeleteAllAsync_RemovesEveryScreenshotAndTheIndexItself()
    Returns
    Type Description
    Task

    DeleteAllAsync_ThrowingBlobStore_DoesNotAbortTheReset()

    Declaration
    public void DeleteAllAsync_ThrowingBlobStore_DoesNotAbortTheReset()

    DeleteAllAsync_WithNothingStored_Succeeds()

    Declaration
    public Task DeleteAllAsync_WithNothingStored_Succeeds()
    Returns
    Type Description
    Task

    SaveAsync_BlobStoreArrivesLate_StartsStoringOnceItDoes()

    Declaration
    public Task SaveAsync_BlobStoreArrivesLate_StartsStoringOnceItDoes()
    Returns
    Type Description
    Task

    SaveAsync_PngWriteFails_LeavesNoIndexEntryPointingAtNothing()

    Declaration
    public Task SaveAsync_PngWriteFails_LeavesNoIndexEntryPointingAtNothing()
    Returns
    Type Description
    Task

    SaveAsync_ReturnsTheRelativeKeyAndWritesUnderTheRootDirectory()

    Declaration
    public Task SaveAsync_ReturnsTheRelativeKeyAndWritesUnderTheRootDirectory()
    Returns
    Type Description
    Task

    SaveAsync_SameAchievementTwice_KeepsOneIndexEntry()

    Declaration
    public Task SaveAsync_SameAchievementTwice_KeepsOneIndexEntry()
    Returns
    Type Description
    Task

    SaveAsync_ThenRead_HandsBackTheExactBytes()

    Declaration
    public Task SaveAsync_ThenRead_HandsBackTheExactBytes()
    Returns
    Type Description
    Task

    SaveAsync_ThrowingBlobStore_ReportsNoKeyInsteadOfFailingTheUnlock()

    Declaration
    public Task SaveAsync_ThrowingBlobStore_ReportsNoKeyInsteadOfFailingTheUnlock()
    Returns
    Type Description
    Task

    SaveAsync_TwoAchievementsConcurrently_LeavesBothInTheIndex()

    Declaration
    public Task SaveAsync_TwoAchievementsConcurrently_LeavesBothInTheIndex()
    Returns
    Type Description
    Task

    SaveAsync_WithNoBytes_StoresNothingAndReportsNoKey()

    Declaration
    public Task SaveAsync_WithNoBytes_StoresNothingAndReportsNoKey()
    Returns
    Type Description
    Task

    SetUp()

    Declaration
    public void SetUp()

    TryReadAsync_KeyThisModuleDidNotWrite_IsRefusedWithoutTouchingTheStore(string)

    Declaration
    public Task TryReadAsync_KeyThisModuleDidNotWrite_IsRefusedWithoutTouchingTheStore(string storageKey)
    Parameters
    Type Name Description
    string storageKey
    Returns
    Type Description
    Task

    TryReadAsync_ThrowingBlobStore_ReportsNoBytes()

    Declaration
    public Task TryReadAsync_ThrowingBlobStore_ReportsNoBytes()
    Returns
    Type Description
    Task

    TryReadAsync_UnknownKey_ReportsNoBytes()

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