logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class CompositeConditionTests

    Behavioral tests for the composites: And, Or, Not and Sequence — how they combine their children, how they report progress without double-counting them, what they validate, and how a sequence's position and its children's tallies round-trip through one packed state string.

    Inheritance
    object
    CompositeConditionTests
    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 CompositeConditionTests

    Constructors

    CompositeConditionTests()

    Declaration
    public CompositeConditionTests()

    Methods

    And_AsksEveryChild_EvenAfterOneFailed()

    Declaration
    public void And_AsksEveryChild_EvenAfterOneFailed()

    And_GetProgress_ReportsTheLeastAdvancedChild()

    Declaration
    public void And_GetProgress_ReportsTheLeastAdvancedChild()

    And_IsMet_OnlyWhenEveryChildIs()

    Declaration
    public void And_IsMet_OnlyWhenEveryChildIs()

    Composite_CollectSignalTypeNames_ReachesEveryDescendant()

    Declaration
    public void Composite_CollectSignalTypeNames_ReachesEveryDescendant()

    Composite_NeedsTick_WhenAnyChildMeasuresTime()

    Declaration
    public void Composite_NeedsTick_WhenAnyChildMeasuresTime()

    Composite_PersistsState_OnlyWhenAChildKeepsATally()

    Declaration
    public void Composite_PersistsState_OnlyWhenAChildKeepsATally()

    Composite_Reset_ReachesEveryChild()

    Declaration
    public void Composite_Reset_ReachesEveryChild()

    Composite_Validate_NeedsAtLeastTwoChildren()

    Declaration
    public void Composite_Validate_NeedsAtLeastTwoChildren()

    Composite_Validate_ReportsWhatIsWrongWithAChild()

    Declaration
    public void Composite_Validate_ReportsWhatIsWrongWithAChild()

    Not_GetProgress_DoesNotAskItsChildToCountASecondTime()

    Declaration
    public void Not_GetProgress_DoesNotAskItsChildToCountASecondTime()

    Not_InvertsItsChild()

    Declaration
    public void Not_InvertsItsChild()

    Not_WithoutAChild_IsNeitherMetNorValid()

    Declaration
    public void Not_WithoutAChild_IsNeitherMetNorValid()

    Or_GetProgress_ReportsTheMostAdvancedChild()

    Declaration
    public void Or_GetProgress_ReportsTheMostAdvancedChild()

    Or_IsMet_AsSoonAsAnyChildIs()

    Declaration
    public void Or_IsMet_AsSoonAsAnyChildIs()

    Sequence_CaptureState_RoundTripsItsPositionAndItsChildrenTallies()

    Declaration
    public void Sequence_CaptureState_RoundTripsItsPositionAndItsChildrenTallies()

    Sequence_DoesNotAdvanceALaterDurationWhileAnEarlierStepIsPending()

    Declaration
    public void Sequence_DoesNotAdvanceALaterDurationWhileAnEarlierStepIsPending()

    Sequence_GetProgress_CountsCompletedSteps()

    Declaration
    public void Sequence_GetProgress_CountsCompletedSteps()

    Sequence_IsMet_OnlyAfterEveryStepInOrder()

    Declaration
    public void Sequence_IsMet_OnlyAfterEveryStepInOrder()

    Sequence_ProbingALaterStepDoesNotCountAnythingForIt()

    Declaration
    public void Sequence_ProbingALaterStepDoesNotCountAnythingForIt()

    Sequence_RestartsWhenALaterStepIsTriggeredFirst()

    Declaration
    public void Sequence_RestartsWhenALaterStepIsTriggeredFirst()

    Sequence_ToleratesAnOutOfOrderStepWhenAuthoredTo()

    Declaration
    public void Sequence_ToleratesAnOutOfOrderStepWhenAuthoredTo()

    Sequence_WithTwoIdenticalSteps_SpendsOneSignalPerStep()

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