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
UnityAchievementScreenshotLoaderTests
Assembly: Tests.dll
Syntax
public class UnityAchievementScreenshotLoaderTests
Constructors
UnityAchievementScreenshotLoaderTests()
Declaration
public UnityAchievementScreenshotLoaderTests()
Methods
LoadAsync_BytesThatAreNotAnImage_ReportsNoSpriteAndRemembersThatToo()
Declaration
public Task LoadAsync_BytesThatAreNotAnImage_ReportsNoSpriteAndRemembersThatToo()
Returns
LoadAsync_FirstCallerCancels_StillCompletesForTheOthers()
Declaration
public Task LoadAsync_FirstCallerCancels_StillCompletesForTheOthers()
Returns
LoadAsync_KeyThisModuleDidNotWrite_IsRefusedWithoutTouchingTheStore(string)
Declaration
public Task LoadAsync_KeyThisModuleDidNotWrite_IsRefusedWithoutTouchingTheStore(string screenshotKey)
Parameters
| Type |
Name |
Description |
| string |
screenshotKey |
|
Returns
LoadAsync_KeyWithNothingStored_ReportsNoSpriteAndRemembersIt()
Declaration
public Task LoadAsync_KeyWithNothingStored_ReportsNoSpriteAndRemembersIt()
Returns
LoadAsync_MoreKeysThanTheCacheHolds_EvictsTheOldest()
Declaration
public Task LoadAsync_MoreKeysThanTheCacheHolds_EvictsTheOldest()
Returns
LoadAsync_SameKeyTwice_ReadsTheStoreOnce()
Declaration
public Task LoadAsync_SameKeyTwice_ReadsTheStoreOnce()
Returns
LoadAsync_StoredScreenshot_ComesBackAsASpriteOfTheStoredSize()
Declaration
public Task LoadAsync_StoredScreenshot_ComesBackAsASpriteOfTheStoredSize()
Returns
LoadAsync_TwoCallsWhileTheStoreIsStillReading_ShareOneRead()
Declaration
public Task LoadAsync_TwoCallsWhileTheStoreIsStillReading_ShareOneRead()
Returns
Release_ForgetsEveryKeyAndReloadsFromScratch()
Declaration
public Task Release_ForgetsEveryKeyAndReloadsFromScratch()
Returns
SetUp()
Declaration
TearDown()
Declaration
TryGetLoaded_KeyNeverLoaded_ReportsNothing()
Declaration
public void TryGetLoaded_KeyNeverLoaded_ReportsNothing()