docs.unity.cn
    Show / Hide Table of Contents

    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
    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.

    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Monday, July 10, 2023