logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class AchievementConditionHardeningTests

    What the condition model does with input it did not produce: a corrupted tree that points at itself, and a stored state that was hand-edited, truncated, written by an older build, or simply is not a number.

    Inheritance
    object
    AchievementConditionHardeningTests
    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 AchievementConditionHardeningTests
    Remarks

    Both arrive from outside — a serialized asset and a database row — so neither may throw, hang, or leave a node holding a value it could never have computed.

    Constructors

    AchievementConditionHardeningTests()

    Declaration
    public AchievementConditionHardeningTests()

    Methods

    ACompositeWithNoChildListAtAll_DoesNotStopConstruction()

    Declaration
    public void ACompositeWithNoChildListAtAll_DoesNotStopConstruction()

    ACompositeWithNoChildListAtAll_IsReportedAsUnderFilled()

    Declaration
    public void ACompositeWithNoChildListAtAll_IsReportedAsUnderFilled()

    ACompositeWithNoChildListAtAll_ReadsAsEmptyRatherThanThrowing()

    Declaration
    public void ACompositeWithNoChildListAtAll_ReadsAsEmptyRatherThanThrowing()

    ACompositeWithNoChildListAtAll_SurvivesEveryWalkThatVisitsItsChildren()

    Declaration
    public void ACompositeWithNoChildListAtAll_SurvivesEveryWalkThatVisitsItsChildren()

    ANodeOutsideTheStructuralBaseClasses_IsWalkedThroughItsOwnChildrenOverride()

    Declaration
    public void ANodeOutsideTheStructuralBaseClasses_IsWalkedThroughItsOwnChildrenOverride()

    ASelfReferencingComposite_IsRefusedRatherThanWalked()

    Declaration
    public void ASelfReferencingComposite_IsRefusedRatherThanWalked()

    ASequenceWithNoStepListAtAll_IsNotMetAndCanBeDescribed()

    Declaration
    public void ASequenceWithNoStepListAtAll_IsNotMetAndCanBeDescribed()

    ATreeNestedPastTheDepthCap_IsRefused()

    Declaration
    public void ATreeNestedPastTheDepthCap_IsRefused()

    AnAndWithNoChildListAtAll_IsNotMet()

    Declaration
    public void AnAndWithNoChildListAtAll_IsNotMet()

    AnOrWithNoChildListAtAll_IsNotMet()

    Declaration
    public void AnOrWithNoChildListAtAll_IsNotMet()

    Duration_IgnoresAnElapsedTimeItCannotUse(string)

    Declaration
    public void Duration_IgnoresAnElapsedTimeItCannotUse(string state)
    Parameters
    Type Name Description
    string state

    OneNodeUsedTwice_IsRefused_BecauseItCannotHoldTwoTallies()

    Declaration
    public void OneNodeUsedTwice_IsRefused_BecauseItCannotHoldTwoTallies()

    Sequence_ClampsARestoredPositionToTheStepsThatExist()

    Declaration
    public void Sequence_ClampsARestoredPositionToTheStepsThatExist()

    Sequence_IgnoresARestoredPositionItCannotRead()

    Declaration
    public void Sequence_IgnoresARestoredPositionItCannotRead()

    SignalReceived_ClampsARestoredTallyToWhatItStillAsksFor()

    Declaration
    public void SignalReceived_ClampsARestoredTallyToWhatItStillAsksFor()

    SignalReceived_IgnoresATallyItCannotUse(string)

    Declaration
    public void SignalReceived_IgnoresATallyItCannotUse(string state)
    Parameters
    Type Name Description
    string state

    TheCodec_IgnoresPartsWithNoChildToRestoreThemInto()

    Declaration
    public void TheCodec_IgnoresPartsWithNoChildToRestoreThemInto()

    TheCodec_KeepsASeparatorThatBelongsToAChild()

    Declaration
    public void TheCodec_KeepsASeparatorThatBelongsToAChild()

    TheCodec_LeavesChildrenAtTheirDefaultsWhenPartsAreMissing()

    Declaration
    public void TheCodec_LeavesChildrenAtTheirDefaultsWhenPartsAreMissing()

    TheCodec_ReadsNothingOutOfNothing()

    Declaration
    public void TheCodec_ReadsNothingOutOfNothing()

    TheCodec_RefusesAnInputPastTheLengthCap()

    Declaration
    public void TheCodec_RefusesAnInputPastTheLengthCap()

    TheCodec_RoundTripsANestedComposite()

    Declaration
    public void TheCodec_RoundTripsANestedComposite()

    TheCodec_ToleratesATrailingLoneEscape()

    Declaration
    public void TheCodec_ToleratesATrailingLoneEscape()

    TwoCompositesHoldingEachOther_AreRefused()

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