logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class DurationConditionTests

    Behavioral tests for DurationCondition: accumulating only while the inner condition holds, restarting when it breaks, the scaled/unscaled choice, progress, validation and the round trip that carries an unfinished duration across a relaunch.

    Inheritance
    object
    DurationConditionTests
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.Achievements.Tests.Conditions
    Assembly: Tests.dll
    Syntax
    public class DurationConditionTests

    Constructors

    DurationConditionTests()

    Declaration
    public DurationConditionTests()

    Methods

    AHalfHourAtSixtyFramesASecond_StillCompletes()

    Declaration
    public void AHalfHourAtSixtyFramesASecond_StillCompletes()

    CaptureState_CarriesTheUnfinishedDurationIntoAFreshCondition()

    Declaration
    public void CaptureState_CarriesTheUnfinishedDurationIntoAFreshCondition()

    CaptureState_IsNothingWhenTheDurationWasAuthoredNotToPersist()

    Declaration
    public void CaptureState_IsNothingWhenTheDurationWasAuthoredNotToPersist()

    GetProgress_ReportsWholeSecondsAndTheExactFraction()

    Declaration
    public void GetProgress_ReportsWholeSecondsAndTheExactFraction()

    IsMet_OnlyAfterTheInnerConditionHeldForTheWholeDuration()

    Declaration
    public void IsMet_OnlyAfterTheInnerConditionHeldForTheWholeDuration()

    IsMet_ReadsUnscaledTimeWhenAuthoredTo()

    Declaration
    public void IsMet_ReadsUnscaledTimeWhenAuthoredTo()

    IsMet_ThrowsTheAccumulatedTimeAwayWhenTheInnerConditionBreaks()

    Declaration
    public void IsMet_ThrowsTheAccumulatedTimeAwayWhenTheInnerConditionBreaks()

    IsMet_WithoutAnInnerCondition_NeverAccumulates()

    Declaration
    public void IsMet_WithoutAnInnerCondition_NeverAccumulates()

    NeedsTick_IsAlwaysTrue()

    Declaration
    public void NeedsTick_IsAlwaysTrue()

    Reset_ForgetsTheDurationAndTheInnerCondition()

    Declaration
    public void Reset_ForgetsTheDurationAndTheInnerCondition()

    Validate_ReportsAMissingInnerConditionAndAnImpossibleDuration()

    Declaration
    public void Validate_ReportsAMissingInnerConditionAndAnImpossibleDuration()

    Validate_ReportsWhatIsWrongWithTheInnerCondition()

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