Class UnityTestScheduler
Default ITestScheduler implementation for Unity.
Will call polling methods in Update
.
Namespace: Responsible.Unity
Assembly: Responsible.dll
Syntax
public class UnityTestScheduler : MonoBehaviour, ITestScheduler, IDisposable
Remarks
If you want to customize this behaviour, it is recommended to just implement your own custom implementation, instead of reusing this one. However, if you want to compose a custom TestInstructionExecutor for Unity, using this as a scheduler is recommended.
Methods
Create()
Creates a UnityTestScheduler in a DontDestroyOnLoad GameObject. The GameObject will be destroyed when this instance is disposed.
Declaration
public static UnityTestScheduler Create()
Returns
Type | Description |
---|---|
UnityTestScheduler |
Dispose()
Will destroy the GameObject this instance is running on.
Declaration
public void Dispose()