logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class SteamIconDownloaderTests

    EditMode tests for Serenity.Achievements.Infrastructure.Editor.Sync.Steam.SteamIconDownloader, the one request of the sync that leaves the partner site: it carries no cookie, refuses every address off Steam's static-content network, follows no redirect, caps the body, accepts only bytes that decode as an image, and never throws.

    Inheritance
    object
    SteamIconDownloaderTests
    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.Editor
    Assembly: Tests.Editor.dll
    Syntax
    public class SteamIconDownloaderTests

    Constructors

    SteamIconDownloaderTests()

    Declaration
    public SteamIconDownloaderTests()

    Methods

    Capabilities_PullTheUnlockedIconOnly()

    Declaration
    public void Capabilities_PullTheUnlockedIconOnly()

    Capabilities_SteamSaysHowItKeepsAnIconSoNoWizardTextStatesItForEveryStorefront()

    Declaration
    public void Capabilities_SteamSaysHowItKeepsAnIconSoNoWizardTextStatesItForEveryStorefront()

    DownloadAsync_ABodyOverTheCap_IsRefusedEvenWhenItIsAValidImage()

    Declaration
    public Task DownloadAsync_ABodyOverTheCap_IsRefusedEvenWhenItIsAValidImage()
    Returns
    Type Description
    Task

    DownloadAsync_ABodyWhoseDeclaredLengthIsFalse_IsStillHeldToTheCap()

    Declaration
    public Task DownloadAsync_ABodyWhoseDeclaredLengthIsFalse_IsStillHeldToTheCap()
    Returns
    Type Description
    Task

    DownloadAsync_ABodyWithNoDeclaredLengthThatNeverEnds_IsRefusedAfterReadingOnlyJustOverTheCap()

    Declaration
    public Task DownloadAsync_ABodyWithNoDeclaredLengthThatNeverEnds_IsRefusedAfterReadingOnlyJustOverTheCap()
    Returns
    Type Description
    Task

    DownloadAsync_ADeclaredLengthOverTheCap_IsRefused()

    Declaration
    public Task DownloadAsync_ADeclaredLengthOverTheCap_IsRefused()
    Returns
    Type Description
    Task

    DownloadAsync_ANotFoundAnswer_NamesTheStatus()

    Declaration
    public Task DownloadAsync_ANotFoundAnswer_NamesTheStatus()
    Returns
    Type Description
    Task

    DownloadAsync_ARedirectAnswer_IsAFailureAndIsNotFollowed(HttpStatusCode)

    Declaration
    public Task DownloadAsync_ARedirectAnswer_IsAFailureAndIsNotFollowed(HttpStatusCode redirect)
    Parameters
    Type Name Description
    HttpStatusCode redirect
    Returns
    Type Description
    Task

    DownloadAsync_ASendThatNeverAnswers_TimesOutAsAFailedDownload()

    Declaration
    public Task DownloadAsync_ASendThatNeverAnswers_TimesOutAsAFailedDownload()
    Returns
    Type Description
    Task

    DownloadAsync_ASendThatThrowsSomethingElse_IsStillAFailedDownload()

    Declaration
    public Task DownloadAsync_ASendThatThrowsSomethingElse_IsStillAFailedDownload()
    Returns
    Type Description
    Task

    DownloadAsync_ASignatureWithoutAnImageBehindIt_IsRefused()

    Declaration
    public Task DownloadAsync_ASignatureWithoutAnImageBehindIt_IsRefused()
    Returns
    Type Description
    Task

    DownloadAsync_AStreamedBodyWithinTheCap_IsReadWhole()

    Declaration
    public Task DownloadAsync_AStreamedBodyWithinTheCap_IsReadWhole()
    Returns
    Type Description
    Task

    DownloadAsync_ATransportFailure_IsAFailedDownloadNotAnException()

    Declaration
    public Task DownloadAsync_ATransportFailure_IsAFailedDownloadNotAnException()
    Returns
    Type Description
    Task

    DownloadAsync_AnAddressOffTheAllowList_IsRefusedWithoutSendingAnything(string)

    Declaration
    public Task DownloadAsync_AnAddressOffTheAllowList_IsRefusedWithoutSendingAnything(string address)
    Parameters
    Type Name Description
    string address
    Returns
    Type Description
    Task

    DownloadAsync_AnAllowedAddress_ReturnsTheImageAndItsRealFormat()

    Declaration
    public Task DownloadAsync_AnAllowedAddress_ReturnsTheImageAndItsRealFormat()
    Returns
    Type Description
    Task

    DownloadAsync_AnEmptyAnswer_SaysSo()

    Declaration
    public Task DownloadAsync_AnEmptyAnswer_SaysSo()
    Returns
    Type Description
    Task

    DownloadAsync_BytesThatAreNotAnImage_AreRefused()

    Declaration
    public Task DownloadAsync_BytesThatAreNotAnImage_AreRefused()
    Returns
    Type Description
    Task

    DownloadAsync_CancelledByTheCaller_IsAFailedDownload()

    Declaration
    public Task DownloadAsync_CancelledByTheCaller_IsAFailedDownload()
    Returns
    Type Description
    Task

    DownloadAsync_NamedAJpgButHoldingAPng_IsStoredAsAPng()

    Declaration
    public Task DownloadAsync_NamedAJpgButHoldingAPng_IsStoredAsAPng()
    Returns
    Type Description
    Task

    DownloadAsync_NothingOffered_IsAFailedDownloadWithoutARequest()

    Declaration
    public Task DownloadAsync_NothingOffered_IsAFailedDownloadWithoutARequest()
    Returns
    Type Description
    Task

    DownloadAsync_ThroughAClientHoldingTheSignIn_SendsNoCookieAndNoSessionId()

    Declaration
    public Task DownloadAsync_ThroughAClientHoldingTheSignIn_SendsNoCookieAndNoSessionId()
    Returns
    Type Description
    Task

    DownloadAsync_ThroughTheTracedSend_ANonImageBodyThatNeverEnds_StillEndsAtTheCapAndTracesTheWithheldMarker(string)

    Declaration
    public Task DownloadAsync_ThroughTheTracedSend_ANonImageBodyThatNeverEnds_StillEndsAtTheCapAndTracesTheWithheldMarker(string mediaType)
    Parameters
    Type Name Description
    string mediaType
    Returns
    Type Description
    Task

    DownloadAsync_ThroughTheTracedSend_ANonImageBodyThatStalls_TimesOutInsteadOfWaitingOnTheTrace(string)

    Declaration
    public Task DownloadAsync_ThroughTheTracedSend_ANonImageBodyThatStalls_TimesOutInsteadOfWaitingOnTheTrace(string mediaType)
    Parameters
    Type Name Description
    string mediaType
    Returns
    Type Description
    Task

    DownloadAsync_ThroughTheTracedSend_ShowsTheRequestOnTheWireTraceAndKeepsNoBody()

    Declaration
    public Task DownloadAsync_ThroughTheTracedSend_ShowsTheRequestOnTheWireTraceAndKeepsNoBody()
    Returns
    Type Description
    Task

    SetUp()

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