logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class UnityAchievementScreenshotLoaderTests

    PlayMode tests for UnityAchievementScreenshotLoader: that a stored screenshot round-trips back into a sprite of the right size, that a key with nothing behind it is remembered as such instead of re-read on every list rebuild, that a key the module did not write is refused outright, and that the cache does not grow without bound.

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

    Constructors

    UnityAchievementScreenshotLoaderTests()

    Declaration
    public UnityAchievementScreenshotLoaderTests()

    Methods

    LoadAsync_BytesThatAreNotAnImage_ReportsNoSpriteAndRemembersThatToo()

    Declaration
    public Task LoadAsync_BytesThatAreNotAnImage_ReportsNoSpriteAndRemembersThatToo()
    Returns
    Type Description
    Task

    LoadAsync_FirstCallerCancels_StillCompletesForTheOthers()

    Declaration
    public Task LoadAsync_FirstCallerCancels_StillCompletesForTheOthers()
    Returns
    Type Description
    Task

    LoadAsync_KeyThisModuleDidNotWrite_IsRefusedWithoutTouchingTheStore(string)

    Declaration
    public Task LoadAsync_KeyThisModuleDidNotWrite_IsRefusedWithoutTouchingTheStore(string screenshotKey)
    Parameters
    Type Name Description
    string screenshotKey
    Returns
    Type Description
    Task

    LoadAsync_KeyWithNothingStored_ReportsNoSpriteAndRemembersIt()

    Declaration
    public Task LoadAsync_KeyWithNothingStored_ReportsNoSpriteAndRemembersIt()
    Returns
    Type Description
    Task

    LoadAsync_MoreKeysThanTheCacheHolds_EvictsTheOldest()

    Declaration
    public Task LoadAsync_MoreKeysThanTheCacheHolds_EvictsTheOldest()
    Returns
    Type Description
    Task

    LoadAsync_SameKeyTwice_ReadsTheStoreOnce()

    Declaration
    public Task LoadAsync_SameKeyTwice_ReadsTheStoreOnce()
    Returns
    Type Description
    Task

    LoadAsync_StoredScreenshot_ComesBackAsASpriteOfTheStoredSize()

    Declaration
    public Task LoadAsync_StoredScreenshot_ComesBackAsASpriteOfTheStoredSize()
    Returns
    Type Description
    Task

    LoadAsync_TwoCallsWhileTheStoreIsStillReading_ShareOneRead()

    Declaration
    public Task LoadAsync_TwoCallsWhileTheStoreIsStillReading_ShareOneRead()
    Returns
    Type Description
    Task

    Release_ForgetsEveryKeyAndReloadsFromScratch()

    Declaration
    public Task Release_ForgetsEveryKeyAndReloadsFromScratch()
    Returns
    Type Description
    Task

    SetUp()

    Declaration
    public void SetUp()

    TearDown()

    Declaration
    public void TearDown()

    TryGetLoaded_KeyNeverLoaded_ReportsNothing()

    Declaration
    public void TryGetLoaded_KeyNeverLoaded_ReportsNothing()
    In this article
    © 2026 Serenity. All Rights Reserved