Class MonoBehaviourTest<T>
This is a wrapper that allows running tests on MonoBehaviour scripts. Inherits from CustomYieldInstruction.
Implements
Inherited Members
Namespace: UnityEngine.TestTools
Assembly: solution.dll
Syntax
public class MonoBehaviourTest<T> : CustomYieldInstruction, IEnumerator where T : MonoBehaviour, IMonoBehaviourTest
Type Parameters
| Name | Description |
|---|---|
| T | A MonoBehaviour component created for the test and attached to the tests GameObject. |
Constructors
| Name | Description |
|---|---|
| MonoBehaviourTest(bool) |
|
Properties
| Name | Description |
|---|---|
| component | A MonoBehaviour component created for the test and attached to the tests GameObject. |
| gameObject | A |
| keepWaiting | (Inherited) Returns `true`` if the test is not finished yet, which keeps the coroutine suspended |