logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class UnityAchievementEvaluatorRunnerTests

    PlayMode tests for UnityAchievementEvaluatorRunner: that a frame ticks the time-driven trees, that the recovery pass fires on the backoff schedule and cannot overlap itself, that a failing pass backs off and reports once, and that tearing the host down unsubscribes everything.

    Inheritance
    object
    UnityAchievementEvaluatorRunnerTests
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.UnityAchievements.Tests.Infrastructure
    Assembly: Tests.dll
    Syntax
    public class UnityAchievementEvaluatorRunnerTests
    Remarks

    Frames are driven through the runner's own AdvanceFrame seam with a fake ITimeProvider, so a thirty-second backoff interval costs one call rather than thirty seconds of wall clock.

    Constructors

    UnityAchievementEvaluatorRunnerTests()

    Declaration
    public UnityAchievementEvaluatorRunnerTests()

    Methods

    AdvanceFrame_OnceTheBackoffIntervalElapses_RunsARecoveryPass()

    Declaration
    public Task AdvanceFrame_OnceTheBackoffIntervalElapses_RunsARecoveryPass()
    Returns
    Type Description
    Task

    AdvanceFrame_TicksTheEvaluatorWithTheTimeProvidersDeltas()

    Declaration
    public void AdvanceFrame_TicksTheEvaluatorWithTheTimeProvidersDeltas()

    AdvanceFrame_WhileAPassIsStillRunning_DoesNotStartASecondOne()

    Declaration
    public void AdvanceFrame_WhileAPassIsStillRunning_DoesNotStartASecondOne()

    AdvanceFrame_WithNoTimeProvider_DoesNotThrow()

    Declaration
    public void AdvanceFrame_WithNoTimeProvider_DoesNotThrow()

    Create_WhenARunnerAlreadyExists_ReplacesItAndDisposesItsBinder()

    Declaration
    public void Create_WhenARunnerAlreadyExists_ReplacesItAndDisposesItsBinder()

    OnDestroy_DisposesTheBinder()

    Declaration
    public void OnDestroy_DisposesTheBinder()

    RecoveryPass_ThatThrows_BacksOffAndWarnsOnce()

    Declaration
    public Task RecoveryPass_ThatThrows_BacksOffAndWarnsOnce()
    Returns
    Type Description
    Task

    RecoveryPass_WithNothingOutstanding_ReturnsToTheBaseInterval()

    Declaration
    public Task RecoveryPass_WithNothingOutstanding_ReturnsToTheBaseInterval()
    Returns
    Type Description
    Task

    RecoveryPass_WithThePlatformStillDown_KeepsBackingOff()

    Declaration
    public Task RecoveryPass_WithThePlatformStillDown_KeepsBackingOff()
    Returns
    Type Description
    Task

    TearDown()

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