Class UnityGameSessionServiceTests
Tests for Serenity.GameSession.Infrastructure.Services.UnityGameSessionService. A controllable fake Serenity.Timer.Application.Interfaces.ITimer drives the elapsed-time path so that lifecycle transitions and time accumulation can be asserted deterministically.
Inherited Members
Namespace: Serenity.UnityGameSession.Tests.Infrastructure
Assembly: Tests.dll
Syntax
public class UnityGameSessionServiceTests
Constructors
UnityGameSessionServiceTests()
Declaration
public UnityGameSessionServiceTests()
Methods
Complete_StopsTimerAndSetsCompletedStatus()
Declaration
public void Complete_StopsTimerAndSetsCompletedStatus()
ElapsedTime_BeforeStart_IsZero()
Declaration
public void ElapsedTime_BeforeStart_IsZero()
GameOver_StopsTimerAndSetsGameOverStatus()
Declaration
public void GameOver_StopsTimerAndSetsGameOverStatus()
GetSnapshot_AfterStart_ReportsPlayingStatus()
Declaration
public void GetSnapshot_AfterStart_ReportsPlayingStatus()
InitializeService_AssignsIdAndGuid()
Declaration
public void InitializeService_AssignsIdAndGuid()
Pause_BeforeStart_DoesNotThrow()
Declaration
public void Pause_BeforeStart_DoesNotThrow()
Pause_FromPlaying_StopsTimerAndPauses()
Declaration
public void Pause_FromPlaying_StopsTimerAndPauses()
Resume_FromPaused_RestartsTimerAndPlays()
Declaration
public void Resume_FromPaused_RestartsTimerAndPlays()
Service_Implements_IGameSessionService()
Declaration
public void Service_Implements_IGameSessionService()
SetUp()
Declaration
public void SetUp()
StartSession_RecordsSessionId()
Declaration
public void StartSession_RecordsSessionId()
StartSession_TransitionsToPlaying_AndStartsTimer()
Declaration
public void StartSession_TransitionsToPlaying_AndStartsTimer()
Status_BeforeStart_IsNotStarted()
Declaration
public void Status_BeforeStart_IsNotStarted()
TearDown()
Declaration
public void TearDown()
Tick_AccumulatesAcrossMultipleCalls()
Declaration
public void Tick_AccumulatesAcrossMultipleCalls()
Tick_BeforeStart_DoesNotThrowAndElapsedStaysZero()
Declaration
public void Tick_BeforeStart_DoesNotThrowAndElapsedStaysZero()
Tick_WhilePlaying_AccumulatesTimerDelta()
Declaration
public void Tick_WhilePlaying_AccumulatesTimerDelta()