Class UnityAchievementScreenshotCapturerTests
PlayMode tests for UnityAchievementScreenshotCapturer: that a capture yields
PNG bytes no wider than the configured maximum, that requests made in the same frame share
one readback, and that a torn-down capturer answers its pending requests instead of leaving
the unlock path awaiting forever.
Inheritance
UnityAchievementScreenshotCapturerTests
Assembly: Tests.dll
Syntax
public class UnityAchievementScreenshotCapturerTests
Constructors
UnityAchievementScreenshotCapturerTests()
Declaration
public UnityAchievementScreenshotCapturerTests()
Methods
Declaration
public void Create_CarriesTheConfiguredMaximumWidth()
Declaration
public void Create_TheConfiguredWidthIsTheOneTheResampleDecisionUses()
Create_Twice_LeavesExactlyOneCapturerHost()
Declaration
public void Create_Twice_LeavesExactlyOneCapturerHost()
EnqueueCapture_EndOfFrameNeverArrives_IsAbandonedRatherThanLeftPending()
Declaration
public IEnumerator EnqueueCapture_EndOfFrameNeverArrives_IsAbandonedRatherThanLeftPending()
Returns
IsEnabled_BatchModeRun_ReportsUnavailableEvenWithAGraphicsDevice()
Declaration
public void IsEnabled_BatchModeRun_ReportsUnavailableEvenWithAGraphicsDevice()
IsEnabled_InPlayMode_FollowsWhetherTheBuildRendersFrames()
Declaration
public void IsEnabled_InPlayMode_FollowsWhetherTheBuildRendersFrames()
IsEnabled_InteractiveRunWithAGraphicsDevice_ReportsAvailable()
Declaration
public void IsEnabled_InteractiveRunWithAGraphicsDevice_ReportsAvailable()
IsEnabled_NoGraphicsDevice_ReportsUnavailable()
Declaration
public void IsEnabled_NoGraphicsDevice_ReportsUnavailable()
TearDown()
Declaration
TryCaptureAsync_AlreadyCancelled_AnswersWithNoBytesWithoutQueueing()
Declaration
public void TryCaptureAsync_AlreadyCancelled_AnswersWithNoBytesWithoutQueueing()
TryCaptureAsync_CancelledWhileWaiting_AnswersWithNoBytes()
Declaration
public IEnumerator TryCaptureAsync_CancelledWhileWaiting_AnswersWithNoBytes()
Returns
TryCaptureAsync_CapturerDestroyedWhileWaiting_AnswersWithNoBytes()
Declaration
public IEnumerator TryCaptureAsync_CapturerDestroyedWhileWaiting_AnswersWithNoBytes()
Returns
Declaration
public IEnumerator TryCaptureAsync_ResolvesToPngBytesNoWiderThanTheConfiguredMaximum()
Returns
TryCaptureAsync_TwoRequestsInTheSameFrame_ShareOneReadback()
Declaration
public IEnumerator TryCaptureAsync_TwoRequestsInTheSameFrame_ShareOneReadback()
Returns