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
FakeFeedbackRuntime
Assembly: Tests.dll
Syntax
public sealed class FakeFeedbackRuntime : IFeedbackRuntime
Constructors
FakeFeedbackRuntime()
Declaration
public FakeFeedbackRuntime()
Properties
ActiveHandles
Declaration
public IReadOnlyCollection<object> ActiveHandles { get; }
Property Value
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
Run(IEnumerator, object)
Declaration
public void Run(IEnumerator routine, object handle)
Parameters
StepAll()
Advances every currently running routine by a single MoveNext call.
Declaration
Implements