logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class FramePumpTests

    Guards the budget contract of FramePump.

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

    The first test is the regression lock for the whole class of bug the helper exists to prevent: replace the wall-clock deadline inside Until(Func<bool>, double) with any frame count and it fails headless while still passing in the editor, which is exactly how four dispatch tests ended up wrongly marked as hanging.

    Constructors

    FramePumpTests()

    Declaration
    public FramePumpTests()

    Methods

    Frames_PumpsTheRequestedCount_WhateverTheClockSays()

    Declaration
    public IEnumerator Frames_PumpsTheRequestedCount_WhateverTheClockSays()
    Returns
    Type Description
    IEnumerator

    UntilCompleted_WithATaskThatCompletesAfterHalfASecond_WaitsForIt()

    Declaration
    public IEnumerator UntilCompleted_WithATaskThatCompletesAfterHalfASecond_WaitsForIt()
    Returns
    Type Description
    IEnumerator

    Until_WithAConditionThatNeverHolds_ReturnsWithinItsBudget()

    Declaration
    public IEnumerator Until_WithAConditionThatNeverHolds_ReturnsWithinItsBudget()
    Returns
    Type Description
    IEnumerator
    In this article
    © 2026 Serenity. All Rights Reserved