2022-01-12 10:06:03 +03:00
|
|
|
using System.Collections;
|
|
|
|
using NUnit.Framework.Interfaces;
|
|
|
|
|
|
|
|
namespace UnityEngine.TestTools
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// When implemented by an attribute, this interface implemented to provide actions to execute before setup and after teardown of tests.
|
|
|
|
/// </summary>
|
|
|
|
public interface IOuterUnityTestAction
|
|
|
|
{
|
|
|
|
/// <summary>Executed before each test is run</summary>
|
|
|
|
/// <param name="test">The test that is going to be run.</param>
|
2022-01-12 10:39:15 +03:00
|
|
|
/// <returns>Enumerable collection of actions to perform before test setup.</returns>
|
2022-01-12 10:06:03 +03:00
|
|
|
IEnumerator BeforeTest(ITest test);
|
|
|
|
|
|
|
|
/// <summary>Executed after each test is run</summary>
|
|
|
|
/// <param name="test">The test that has just been run.</param>
|
2022-01-12 10:39:15 +03:00
|
|
|
/// <returns>Enumerable collection of actions to perform after test teardown.</returns>
|
2022-01-12 10:06:03 +03:00
|
|
|
IEnumerator AfterTest(ITest test);
|
|
|
|
}
|
|
|
|
}
|