Interface IEditModeTestYieldInstruction
In an Edit Mode test, you can use IEditModeTestYieldInstruction
interface to implement your own instruction. There are also a couple of commonly used implementations available:
Namespace: UnityEngine.TestTools
Syntax
public interface IEditModeTestYieldInstruction
Properties
ExpectDomainReload
Whether or not the instruction expects a domain reload to occur.
Declaration
bool ExpectDomainReload { get; }
Property Value
Type | Description |
---|---|
Boolean |
ExpectedPlaymodeState
Whether or not the instruction expects the Unity Editor to be in Play Mode.
Declaration
bool ExpectedPlaymodeState { get; }
Property Value
Type | Description |
---|---|
Boolean |
Methods
Perform()
Used to define multi-frame operations performed when instantiating a yield instruction.
Declaration
IEnumerator Perform()
Returns
Type | Description |
---|---|
IEnumerator | Enumerable collection of operations to perform. |