logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class FakeFeedbackRuntime

    Test double for IFeedbackRuntime that stores each routine by handle instead of running it on a Unity coroutine scheduler. Call StepAll() to advance every currently running routine by one iteration (equivalent to one frame passing).

    Inheritance
    object
    FakeFeedbackRuntime
    Implements
    IFeedbackRuntime
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    Namespace: Serenity.UnityFeedback.Tests.Infrastructure
    Assembly: Tests.dll
    Syntax
    public sealed class FakeFeedbackRuntime : IFeedbackRuntime

    Constructors

    FakeFeedbackRuntime()

    Declaration
    public FakeFeedbackRuntime()

    Properties

    ActiveHandles

    Declaration
    public IReadOnlyCollection<object> ActiveHandles { get; }
    Property Value
    Type Description
    IReadOnlyCollection<object>

    Handles currently running (not yet cancelled or completed).

    Methods

    Cancel(object)

    Declaration
    public void Cancel(object handle)
    Parameters
    Type Name Description
    object handle

    IsRunning(object)

    True while a routine is registered under handle.

    Declaration
    public bool IsRunning(object handle)
    Parameters
    Type Name Description
    object handle
    Returns
    Type Description
    bool

    Run(IEnumerator, object)

    Declaration
    public void Run(IEnumerator routine, object handle)
    Parameters
    Type Name Description
    IEnumerator routine
    object handle

    StepAll()

    Advances every currently running routine by a single MoveNext call.

    Declaration
    public void StepAll()

    Implements

    IFeedbackRuntime
    In this article
    © 2026 Serenity. All Rights Reserved