Interface IOuterUnityTestAction
When implemented by an attribute, this interface implemented to provide actions to execute before setup and after teardown of tests.
Namespace: UnityEngine.TestTools
Assembly: UnityEngine.TestRunner.dll
Syntax
public interface IOuterUnityTestAction
Methods
AfterTest(ITest)
Executed after each test is run
Declaration
IEnumerator AfterTest(ITest test)
Parameters
Type | Name | Description |
---|---|---|
ITest | test | The test that has just been run. |
Returns
Type | Description |
---|---|
IEnumerator | Enumerable collection of actions to perform after test teardown. |
BeforeTest(ITest)
Executed before each test is run
Declaration
IEnumerator BeforeTest(ITest test)
Parameters
Type | Name | Description |
---|---|---|
ITest | test | The test that is going to be run. |
Returns
Type | Description |
---|---|
IEnumerator | Enumerable collection of actions to perform before test setup. |