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
SteamIconDownloaderTests
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
DownloadAsync_ABodyWhoseDeclaredLengthIsFalse_IsStillHeldToTheCap()
Declaration
public Task DownloadAsync_ABodyWhoseDeclaredLengthIsFalse_IsStillHeldToTheCap()
Returns
DownloadAsync_ABodyWithNoDeclaredLengthThatNeverEnds_IsRefusedAfterReadingOnlyJustOverTheCap()
Declaration
public Task DownloadAsync_ABodyWithNoDeclaredLengthThatNeverEnds_IsRefusedAfterReadingOnlyJustOverTheCap()
Returns
DownloadAsync_ADeclaredLengthOverTheCap_IsRefused()
Declaration
public Task DownloadAsync_ADeclaredLengthOverTheCap_IsRefused()
Returns
DownloadAsync_ANotFoundAnswer_NamesTheStatus()
Declaration
public Task DownloadAsync_ANotFoundAnswer_NamesTheStatus()
Returns
DownloadAsync_ARedirectAnswer_IsAFailureAndIsNotFollowed(HttpStatusCode)
Declaration
public Task DownloadAsync_ARedirectAnswer_IsAFailureAndIsNotFollowed(HttpStatusCode redirect)
Parameters
Returns
DownloadAsync_ASendThatNeverAnswers_TimesOutAsAFailedDownload()
Declaration
public Task DownloadAsync_ASendThatNeverAnswers_TimesOutAsAFailedDownload()
Returns
DownloadAsync_ASendThatThrowsSomethingElse_IsStillAFailedDownload()
Declaration
public Task DownloadAsync_ASendThatThrowsSomethingElse_IsStillAFailedDownload()
Returns
DownloadAsync_ASignatureWithoutAnImageBehindIt_IsRefused()
Declaration
public Task DownloadAsync_ASignatureWithoutAnImageBehindIt_IsRefused()
Returns
DownloadAsync_AStreamedBodyWithinTheCap_IsReadWhole()
Declaration
public Task DownloadAsync_AStreamedBodyWithinTheCap_IsReadWhole()
Returns
DownloadAsync_ATransportFailure_IsAFailedDownloadNotAnException()
Declaration
public Task DownloadAsync_ATransportFailure_IsAFailedDownloadNotAnException()
Returns
DownloadAsync_AnAddressOffTheAllowList_IsRefusedWithoutSendingAnything(string)
Declaration
public Task DownloadAsync_AnAddressOffTheAllowList_IsRefusedWithoutSendingAnything(string address)
Parameters
| Type |
Name |
Description |
| string |
address |
|
Returns
Declaration
public Task DownloadAsync_AnAllowedAddress_ReturnsTheImageAndItsRealFormat()
Returns
DownloadAsync_AnEmptyAnswer_SaysSo()
Declaration
public Task DownloadAsync_AnEmptyAnswer_SaysSo()
Returns
DownloadAsync_BytesThatAreNotAnImage_AreRefused()
Declaration
public Task DownloadAsync_BytesThatAreNotAnImage_AreRefused()
Returns
DownloadAsync_CancelledByTheCaller_IsAFailedDownload()
Declaration
public Task DownloadAsync_CancelledByTheCaller_IsAFailedDownload()
Returns
DownloadAsync_NamedAJpgButHoldingAPng_IsStoredAsAPng()
Declaration
public Task DownloadAsync_NamedAJpgButHoldingAPng_IsStoredAsAPng()
Returns
DownloadAsync_NothingOffered_IsAFailedDownloadWithoutARequest()
Declaration
public Task DownloadAsync_NothingOffered_IsAFailedDownloadWithoutARequest()
Returns
DownloadAsync_ThroughAClientHoldingTheSignIn_SendsNoCookieAndNoSessionId()
Declaration
public Task DownloadAsync_ThroughAClientHoldingTheSignIn_SendsNoCookieAndNoSessionId()
Returns
DownloadAsync_ThroughTheTracedSend_ANonImageBodyThatNeverEnds_StillEndsAtTheCapAndTracesTheWithheldMarker(string)
Declaration
public Task DownloadAsync_ThroughTheTracedSend_ANonImageBodyThatNeverEnds_StillEndsAtTheCapAndTracesTheWithheldMarker(string mediaType)
Parameters
| Type |
Name |
Description |
| string |
mediaType |
|
Returns
DownloadAsync_ThroughTheTracedSend_ANonImageBodyThatStalls_TimesOutInsteadOfWaitingOnTheTrace(string)
Declaration
public Task DownloadAsync_ThroughTheTracedSend_ANonImageBodyThatStalls_TimesOutInsteadOfWaitingOnTheTrace(string mediaType)
Parameters
| Type |
Name |
Description |
| string |
mediaType |
|
Returns
DownloadAsync_ThroughTheTracedSend_ShowsTheRequestOnTheWireTraceAndKeepsNoBody()
Declaration
public Task DownloadAsync_ThroughTheTracedSend_ShowsTheRequestOnTheWireTraceAndKeepsNoBody()
Returns
SetUp()
Declaration