logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class AccumulateWhileConditionTests

    Behavioral tests for AccumulateWhileCondition: accumulating the growth of a score metric and a flat rate, ignoring what happened while the inner condition was broken, the reset-on-break switch, progress and validation.

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

    Constructors

    AccumulateWhileConditionTests()

    Declaration
    public AccumulateWhileConditionTests()

    Methods

    GetProgress_ReportsTheAccumulatedAmountAgainstTheRequirement()

    Declaration
    public void GetProgress_ReportsTheAccumulatedAmountAgainstTheRequirement()

    IsMet_AccumulatesAFlatRateWhenNoSourceMetricIsNamed()

    Declaration
    public void IsMet_AccumulatesAFlatRateWhenNoSourceMetricIsNamed()

    IsMet_AccumulatesOnlyTheGrowthOfTheSourceMetric()

    Declaration
    public void IsMet_AccumulatesOnlyTheGrowthOfTheSourceMetric()

    IsMet_DoesNotCreditGrowthThatHappenedWhileTheInnerConditionWasBroken()

    Declaration
    public void IsMet_DoesNotCreditGrowthThatHappenedWhileTheInnerConditionWasBroken()

    IsMet_IgnoresAMetricThatWentBackwards()

    Declaration
    public void IsMet_IgnoresAMetricThatWentBackwards()

    IsMet_IsSatisfiedOnceEnoughGrowthAccumulated()

    Declaration
    public void IsMet_IsSatisfiedOnceEnoughGrowthAccumulated()

    IsMet_KeepsTheRunAcrossABreakWhenAuthoredTo()

    Declaration
    public void IsMet_KeepsTheRunAcrossABreakWhenAuthoredTo()

    IsMet_RebasesOnAMetricThatWentBackwards_AndCreditsTheGrowthAfterIt()

    Declaration
    public void IsMet_RebasesOnAMetricThatWentBackwards_AndCreditsTheGrowthAfterIt()

    IsMet_ThrowsTheRunAwayOnABreakWhenAuthoredTo()

    Declaration
    public void IsMet_ThrowsTheRunAwayOnABreakWhenAuthoredTo()

    NeedsTick_IsAlwaysTrue()

    Declaration
    public void NeedsTick_IsAlwaysTrue()

    PersistsState_IsFalse_BecauseARelaunchIsTheLargestPossibleBreak()

    Declaration
    public void PersistsState_IsFalse_BecauseARelaunchIsTheLargestPossibleBreak()

    Validate_ReportsEverySetupThatCannotAccumulate()

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