logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class CutsceneDialogStageRulesTests

    The rules every surface shares for a dialog stage: its minimum, its default and its empty check.

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

    Constructors

    CutsceneDialogStageRulesTests()

    Declaration
    public CutsceneDialogStageRulesTests()

    Methods

    DefaultDialogSeconds_IsAtLeastTheMinimum()

    Declaration
    public void DefaultDialogSeconds_IsAtLeastTheMinimum()

    DescribeLine_ASpeakerWithoutALine_StillNamesTheSpeaker()

    Declaration
    public void DescribeLine_ASpeakerWithoutALine_StillNamesTheSpeaker()

    DescribeLine_ASummaryOverTheMaximum_IsCutFromTheRightWithAnEllipsis(int, bool)

    Declaration
    public void DescribeLine_ASummaryOverTheMaximum_IsCutFromTheRightWithAnEllipsis(int summaryLength, bool isCut)
    Parameters
    Type Name Description
    int summaryLength
    bool isCut

    DescribeLine_LineBreaksAreCollapsedToASpace(string)

    Declaration
    public void DescribeLine_LineBreaksAreCollapsedToASpace(string lineWithBreak)
    Parameters
    Type Name Description
    string lineWithBreak

    DescribeLine_ManyLineBreaksInTheLine_AreCollapsedBeforeTheMaximumApplies()

    Declaration
    public void DescribeLine_ManyLineBreaksInTheLine_AreCollapsedBeforeTheMaximumApplies()

    DescribeLine_NoSpeakerAndNoLine_SaysSo(string, string)

    Declaration
    public void DescribeLine_NoSpeakerAndNoLine_SaysSo(string speaker, string dialogText)
    Parameters
    Type Name Description
    string speaker
    string dialogText

    DescribeLine_NoSpeaker_ShowsTheLineAlone(string)

    Declaration
    public void DescribeLine_NoSpeaker_ShowsTheLineAlone(string speaker)
    Parameters
    Type Name Description
    string speaker

    DescribeLine_WithASpeaker_NamesThemAndTheLine()

    Declaration
    public void DescribeLine_WithASpeaker_NamesThemAndTheLine()

    DescribeProblems_ALineWithoutASpeakerOrASpeakerWithoutALine_IsNoProblem(string, string)

    Declaration
    public void DescribeProblems_ALineWithoutASpeakerOrASpeakerWithoutALine_IsNoProblem(string speaker, string dialogText)
    Parameters
    Type Name Description
    string speaker
    string dialogText

    DescribeProblems_AStageWithoutAnId_NamesItByNumberAlone()

    Declaration
    public void DescribeProblems_AStageWithoutAnId_NamesItByNumberAlone()

    DescribeProblems_AWellFormedDialog_IsEmpty()

    Declaration
    public void DescribeProblems_AWellFormedDialog_IsEmpty()

    DescribeProblems_AnAuthoredValueTheMinimumCannotHide_IsPrintedAsAuthored(float, string)

    Declaration
    public void DescribeProblems_AnAuthoredValueTheMinimumCannotHide_IsPrintedAsAuthored(float durationSeconds, string printed)
    Parameters
    Type Name Description
    float durationSeconds
    string printed

    DescribeProblems_NoSpeakerAndNoLine_NamesTheStageAndTheWayForward()

    Declaration
    public void DescribeProblems_NoSpeakerAndNoLine_NamesTheStageAndTheWayForward()

    DescribeProblems_NothingToShowAndTooShort_OnlyReportsThatThereIsNothingToShow()

    Declaration
    public void DescribeProblems_NothingToShowAndTooShort_OnlyReportsThatThereIsNothingToShow()

    DescribeProblems_ShorterThanTheMinimum_SaysHowLongItStays()

    Declaration
    public void DescribeProblems_ShorterThanTheMinimum_SaysHowLongItStays()

    DescribeProblems_UsesTheInvariantDecimalPoint()

    Declaration
    public void DescribeProblems_UsesTheInvariantDecimalPoint()

    DescribeProblems_WhitespaceOnly_CountsAsEmpty()

    Declaration
    public void DescribeProblems_WhitespaceOnly_CountsAsEmpty()

    DurationAfterTypeChange_ToADialogAtOrAboveTheMinimum_KeepsIt(float)

    Declaration
    public void DurationAfterTypeChange_ToADialogAtOrAboveTheMinimum_KeepsIt(float durationSeconds)
    Parameters
    Type Name Description
    float durationSeconds

    DurationAfterTypeChange_ToADialogBelowTheMinimum_SeedsTheDefault(float)

    Declaration
    public void DurationAfterTypeChange_ToADialogBelowTheMinimum_SeedsTheDefault(float durationSeconds)
    Parameters
    Type Name Description
    float durationSeconds

    DurationAfterTypeChange_ToAnotherTypeOrTheSameDialog_KeepsIt(CutsceneStageType, CutsceneStageType)

    Declaration
    public void DurationAfterTypeChange_ToAnotherTypeOrTheSameDialog_KeepsIt(CutsceneStageType previousType, CutsceneStageType newType)
    Parameters
    Type Name Description
    CutsceneStageType previousType
    CutsceneStageType newType

    HasNoContent_OnlyWhenBothAreEmptyOrWhitespace(string, string, bool)

    Declaration
    public void HasNoContent_OnlyWhenBothAreEmptyOrWhitespace(string speaker, string dialogText, bool expected)
    Parameters
    Type Name Description
    string speaker
    string dialogText
    bool expected

    IsShorterThanMinimum_BelowIsTrue_AtTheMinimumIsFalse(float, bool)

    Declaration
    public void IsShorterThanMinimum_BelowIsTrue_AtTheMinimumIsFalse(float durationSeconds, bool expected)
    Parameters
    Type Name Description
    float durationSeconds
    bool expected

    PlayedSeconds_AtOrAboveTheMinimum_IsTheAuthoredDuration(float)

    Declaration
    public void PlayedSeconds_AtOrAboveTheMinimum_IsTheAuthoredDuration(float durationSeconds)
    Parameters
    Type Name Description
    float durationSeconds

    PlayedSeconds_ShorterThanTheMinimum_IsTheMinimum(float)

    Declaration
    public void PlayedSeconds_ShorterThanTheMinimum_IsTheMinimum(float durationSeconds)
    Parameters
    Type Name Description
    float durationSeconds
    In this article
    © 2026 Serenity. All Rights Reserved