logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class GameSessionStateTests

    Tests for the GameSessionState entity.

    Inheritance
    object
    GameSessionStateTests
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.GameSession.Tests.Domain
    Assembly: Tests.dll
    Syntax
    public class GameSessionStateTests

    Constructors

    GameSessionStateTests()

    Declaration
    public GameSessionStateTests()

    Methods

    Complete_TransitionsToCompleted()

    Declaration
    public void Complete_TransitionsToCompleted()

    Ctor_ElapsedTimeIsZero()

    Declaration
    public void Ctor_ElapsedTimeIsZero()

    Ctor_ScoreIsNotNull()

    Declaration
    public void Ctor_ScoreIsNotNull()

    Ctor_StatusIsNotStarted()

    Declaration
    public void Ctor_StatusIsNotStarted()

    Ctor_StoresId()

    Declaration
    public void Ctor_StoresId()

    GameOver_TransitionsToGameOver()

    Declaration
    public void GameOver_TransitionsToGameOver()

    Pause_WhenNotPlaying_DoesNothing()

    Declaration
    public void Pause_WhenNotPlaying_DoesNothing()

    Pause_WhenPlaying_TransitionsToPaused()

    Declaration
    public void Pause_WhenPlaying_TransitionsToPaused()

    Resume_WhenNotPaused_DoesNothing()

    Declaration
    public void Resume_WhenNotPaused_DoesNothing()

    Resume_WhenPaused_TransitionsToPlaying()

    Declaration
    public void Resume_WhenPaused_TransitionsToPlaying()

    SetUp()

    Declaration
    public void SetUp()

    Start_TransitionsToPlaying()

    Declaration
    public void Start_TransitionsToPlaying()

    ToSnapshot_ReflectsCurrentState()

    Declaration
    public void ToSnapshot_ReflectsCurrentState()

    UpdateTime_WhenNotPlaying_DoesNotAccumulate()

    Declaration
    public void UpdateTime_WhenNotPlaying_DoesNotAccumulate()

    UpdateTime_WhenPaused_DoesNotAccumulate()

    Declaration
    public void UpdateTime_WhenPaused_DoesNotAccumulate()

    UpdateTime_WhenPlaying_AccumulatesTime()

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